Thursday, March 27, 2014

Notes on the most beautiful shell of the world: fish!

  • How do I run a command every login? What's fish's equivalent to .bashrc?
    Edit the file ~/.config/fish/config.fish, creating it if it does not exist. (Note the leading period.)
  • How do I set my prompt?
    The prompt is the output of the function fish_prompt. Put it in ~/.config/fish/config.fish, or in ~/.config/fish/functions/fish_prompt.fish. For example:
      function fish_prompt
        set_color $fish_color_cwd
        echo -n (prompt_pwd)
        set_color normal
        echo -n ' > '

No comments:

Post a Comment