Skip to content

Instantly share code, notes, and snippets.

@EmmanuellaAlbuquerque
Last active June 11, 2024 00:17
Show Gist options
  • Save EmmanuellaAlbuquerque/1b4dcbecc1cd1eeaefcdbcdafcc561b4 to your computer and use it in GitHub Desktop.
Save EmmanuellaAlbuquerque/1b4dcbecc1cd1eeaefcdbcdafcc561b4 to your computer and use it in GitHub Desktop.
My fish config for prompt
set -g __fish_git_prompt_showdirtystate true
set -g __fish_git_prompt_char_dirtystate "🚧"
set -g __fish_git_prompt_char_stagedstate "🚧"
set -g __fish_git_prompt_char_cleanstate " ✅"
function fish_prompt
set last_status $status
set_color '#9693db'
printf 'manu '
set_color white
printf 'in '
set_color $fish_color_cwd
printf '⋊> '
set_color white
printf '%s ' (prompt_pwd)
if test -d .git
set_color yellow
printf '~%s ' (fish_git_prompt)
set_color normal
end
end
# RVM for Fish (https://rvm.io/integration/fish)
cd ~/.config/fish/
# > manu in ⋊> ~/.c/f/functions ls
# > fish_prompt.fish rvm.fish
nano ~/.config/fish/functions/fish_prompt.fish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment