Pretty, minimal and fast Fish prompt, inspired by Pure for ZSH
- Neat prompt character. Many thanks to Pure.ZSH for it.
- Shows git branch and whether it's dirty (with a *).
- Indicates when you have unpushed/unpulled git commits with up/down arrows.
- Prompt character turns red if the last command didn't exit with 0.
- Command execution time will be displayed if it exceeds the set threshold.
- Username and host only displayed when in an SSH or sudo session.
- Shows the current path in the title and the current folder & command when a process is running.
- Get the repo
- Place
fish_prompt.fish
to$HOME/.config/fish/functions/fish_prompt.fish
to get pure prompt - Place
fish_title.fish
to$HOME/.config/fish/functions/fish_title.fish
to get pure terminal title
$ ln -s "$PWD/functions/fish_prompt.fish" "$HOME/.config/fish/functions/fish_prompt.fish"
$ ln -s "$PWD/functions/fish_title.fish" "$HOME/.config/fish/functions/fish_title.fish"
The max execution time of a process before its run time is shown when it exits. Defaults to 5 seconds.
Set PURE_GIT_FETCH
to 0
to prevent Pure from checking whether the current Git remote has been updated.
Interval to check current Git remote for changes. Defaults to 1800 seconds.
Time in seconds after last dirty check. To throttle down git dirty checking frequency for large repositories (git status takes > 2 seconds). The check is performed asynchronously, this is to save CPU. Defaults to 10 seconds.
Defines the prompt symbol. The default value is ❯
.
Defines the git down arrow symbol. The default value is ⇣
.
Defines the git up arrow symbol. The default value is ⇡
.
Defines the git fetch proxess indicator symbol. The default value is •
.
Indicates that current fish instance is created by pure and running background async task. Can be used to skip some steps in the config.fish.