Y
Hacker News
new
|
ask
|
show
|
jobs
by
hk__2
4784 days ago
Actually, except the `SHARE_HISTORY` option (which can be emulated), everything else is available in Bash.
1 comments
pyre
4784 days ago
Sorry, I just copy-pasted the whole thing. I know that most of the other options are available, though I didn't know that the HIST_IGNORE_SPACE was available in bash.
link
mnarayan01
4784 days ago
In bash you'd use HISTCONTROL=ignorespace
link
pyre
4784 days ago
According to the manpage, ignorespace doesn't treat multi-line commands very nicely.
link
mnarayan01
4782 days ago
You would have to disable the cmdhist option for that to matter:
shopt -u cmdhist
Or I guess be working with a bash old enough to not support cmdhist.
link