bd
bd copied to clipboard
Suggestion: Make the -s option activated by default
Hi,
This script is great and I'd like to see it included in the GNU tools ^^
Just a little suggestion, make the -s option activated by default to avoid the alias in .bashrc. And add a "-S" option for "strict search"
This is just a suggestion. You are free to reject it.
Or just use an environment variable to force it?
The idea of an env variable is really good, I made the change in my implementation of BD in FISH (0rax/fish-bd) last week. You just make me realize that I didn't made an option to bypass the ENV var option like -S. I really think that an env var is the better way for each one to make the option he wants as default.
Nice suggestion ;)
The goal was to avoid additional configuration. For me a line in .bashrc to add an alias or an environment variable is the same. Default behavior should not need any configuration.
Well I understand what you mean, just saying that web dont have to remove the default behavior, keep one but modifying it with an env var (in fish I though this was clearer than an alias because bd is implemented as a
function).
But well, in bash the problem is when you want to use bd like 'mv * bd foo
' if you don't have an option like -S to force the default behavior and you made an alias what will happen ?
This is just my vision, and it could be unclear :/ Sorry for my English...