Last active
June 11, 2024 00:17
-
-
Save EmmanuellaAlbuquerque/1b4dcbecc1cd1eeaefcdbcdafcc561b4 to your computer and use it in GitHub Desktop.
My fish config for prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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