bd icon indicating copy to clipboard operation
bd copied to clipboard

Suggestion: Make the -s option activated by default

Open skyghis opened this issue 11 years ago • 4 comments

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.

skyghis avatar Sep 03 '13 08:09 skyghis

Or just use an environment variable to force it?

To1ne avatar Oct 09 '13 14:10 To1ne

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 ;)

0rax avatar Oct 17 '13 07:10 0rax

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.

skyghis avatar Oct 17 '13 07:10 skyghis

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...

0rax avatar Oct 17 '13 08:10 0rax