Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No configuration is key for me. After more than 10 years with zsh I realized that configuration is technical debt. If I can have a reasonably modern shell without needing to configure it, that is worth a lot more to me than having things precisely the way I want them.


Absolutely, I've been using fish for at least ten years and have very little config, which was not at all the case before I switched.

The only material thing in my fish config is adding `echo -n (date "+%H:%M:%S ")` to the fish_prompt, which I've come to love having over the years. Consistently really nice to have a sense of when a command started and finished. And `cowsay (fortune -s)` in the fish_greeting ;-).


I added the date to fish_right_prompt in a darker grey. It's there but it's very subtle. Fish is also smart enough to delete the fish_right_prompt text when your cursor gets to it so it doesn't get in the way of long lines. Here's what I use:

  function fish_right_prompt --description 'Write out the right prompt'
      set_color 666666
      date +'%Y-%m-%d %H:%M:%S'
      set_color normal
  end


That’s such a great idea, I’m annoyed it never occurred to me. Many times I just slip in a ‘date; <cmd>; date;’ and then get annoyed when something is taking too long, but I forgot to timestamp it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: