Re:Why Create a New Unix Shell?
by ComputerGuru on Wednesday January 31, 2018 @05:48PM
(#16278267)
I used bash first, then zsh. You have to try fish, it shows a "ghost" of the first matching autocompletion on the same line, which changes dynamically as you type. It also has a cool memory effect for figuring out history completions based off the directory you are in.
Like csh on FreeBSD, alt+(up/down) can be used to search history for arguments instead of lines, so if you do something like
touch some/long/directory/path/to/file
....
rm so<ALT+up>
fish will search all individual arguments (correctly handling quoted spaces, etc) for arguments starting with "so" and it'll suggest the path in question, even though the head here (`rm`) differs from the original (`touch` in this case).
Re:Why Create a New Unix Shell?
by brokenmachine on Wednesday January 31, 2018 @10:53PM
(#16279532)
That sounds a bit dangerous, especially with rm.
As always, with great power comes great responsibility I guess.
Re:Why Create a New Unix Shell?
by kevin_thibedeau on Wednesday January 31, 2018 @05:35PM
(#16278171)
Or just use ctrl-R et al.
This is available in bash/sh by setting this in your ~/.inputrc file: