forked from extern/nix-config
1ad54203d2
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. |
||
---|---|---|
.. | ||
.config/fish | ||
README.md |
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.