Saturday, June 07, 2008

Fish: my next generation sh?

Casper introduced me to fish in a nice write up of functionality. Nice tip! I have been using BASH for a long time now, before which I used csh, IIRC. Oi, that was on the old Solaris days. Anyway, default settings are quite nice, but one thing I don't like so much is the abbreviated pwd in the prompt. At least, not for the full prompt. It would suite me best of the last two or three directories were not abbreviated, but could not find an option for that.

Workaround is to simply define a new prompt in ~/.config/fish/config.fish, where I changed it default prompt to use pwd instead of prompt_pwd.