Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Make the -s option activated by default #10

Open
skyghis opened this issue Sep 3, 2013 · 4 comments
Open

Suggestion: Make the -s option activated by default #10

skyghis opened this issue Sep 3, 2013 · 4 comments

Comments

@skyghis
Copy link

skyghis commented Sep 3, 2013

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.

@To1ne
Copy link

To1ne commented Oct 9, 2013

Or just use an environment variable to force it?

@0rax
Copy link

0rax commented Oct 17, 2013

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

@skyghis
Copy link
Author

skyghis commented Oct 17, 2013

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.

@0rax
Copy link

0rax commented Oct 17, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants