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

Simple hack to emulate bash/zsh's HISTCONTROL=ignorespace #615

Closed
wants to merge 2 commits into from
Closed

Simple hack to emulate bash/zsh's HISTCONTROL=ignorespace #615

wants to merge 2 commits into from

Conversation

kvs
Copy link
Contributor

@kvs kvs commented Mar 9, 2013

A leading space on a command will skip saving in history.

I thought about making this configurable, or adding an option
to the history builtin, but it all just seemed too complex for
such a simple thing.

An alternative would've been a built-in command like 'nohist'
or somesuch, but that also seemed excessive.

kvs added 2 commits March 9, 2013 01:06
A leading space on a command will skip saving in history.

I thought about making this configurable, or adding an option
to the `history` builtin, but it all just seemed too complex for
such a simple thing.
@ridiculousfish
Copy link
Member

Merged here:

To git@github.com:fish-shell/fish-shell.git
1afdbb8..4cce303 master -> master

I took the documentation commit (thanks for remembering to do that) but 09e5ebe had a few issues:

  • should use .at(0) instead of c_str()[0]
  • should compare against a wchar_t: L' '

So I implemented those. Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants