1
0
forked from extern/nix-config
donovanglover-nix-config/fish
Donovan Glover 1ad54203d2
meta: Add git branch information to fish prompt
If I stayed on zsh instead of switch to fish, I would've probably never
known how easy it is to add certain information to the prompt. Since
the prompt itself is just a function, you can run any commands you want
inside it to get information, including git commands.

This commit adds the current branch you're on only when inside a git
repository, and only when you're not in a tty.
2018-12-05 11:45:29 -05:00
..
.config/fish meta: Add git branch information to fish prompt 2018-12-05 11:45:29 -05:00
README.md docs: Update READMEs for fish, git, and tmux 2018-11-19 22:00:35 -05:00

fish

fish is the friendly interactive shell.

Use Cases

fish can be used to:

  • Have syntax highlighting in the terminal with 0 configuration
  • Have leading autocompletion in the terminal with 0 configuration
  • Set abbreviations instead of aliases, making it easy to remember what aliases expand to

You should not use fish if:

  • You should use fish.