I like fishshell for a number of reasons with my favorite being the CLI. While it does not support ^R, out of the box, in order to search the command history it feels a lot more natural. Just start retyping the desired command and it will find and highlight the previous versions which you can scroll and select. Of course it has the weakness that if the first few letters of the command are not the same as the next command then there is some CLI navigation gymnastics… but at least the normal operation is the normal operation.
I suppose I have gotten used to the fact that the .bashrc and .profile files are in the $HOME folder because when fish decided to put it’s config file here: $HOME/.config/fish/config.fish I could never remember the exact folder and in some cases I could not be bothered to search the docs. This is part of my green folder initiative.
My fish/config.fish looks like this:
set -x fish_user_paths $HOME/binset -x GOPATH $HOMEgo env|grep GOROOT | sed -e “s/(.)=(.)/set -x \1 \2/” |sourceThe first line adds my bin folder to the PATH environment variable without having to do the work myself. If memory serves the function will check for dupes. This may or may not be a bad thing if order is important… and it should never be.
boot2docker shellinitcommand is compatible with fish and while you might use:
$(boot2docker shellinit)in bash; in fish you’ll use:
boot2docker shellinit | sourceThe changes to the environment are exactly the same.