Username checks out.
I think one of the most surprising things I learned about bash is that you can do this:
touch ./-rf
rm *
And now you have rm -rf'd. :)I think one of the most surprising things I learned about bash is that you can do this:
touch ./-rf
rm *
And now you have rm -rf'd. :)I often wish there was a convenient way of doing such an operation in the shell: if path start with "/", leave it, otherwise prepend "./"
Both bash and zsh have enough functionality exposed via shell functions and variables for you to define a keybinding that does exactly this, interactively. Good idea.
Did you mean an interactive command? Or something else?
For all paths it could be dangerous and should very probably not be done. But for executables it's less dangerous and can easily be done by putting '.' into $PATH.