Skip to content

Instantly share code, notes, and snippets.

@michaeltieso
Created September 6, 2018 08:12
Show Gist options
  • Save michaeltieso/70eede25c817b70f8503cefc38af9e5c to your computer and use it in GitHub Desktop.
Save michaeltieso/70eede25c817b70f8503cefc38af9e5c to your computer and use it in GitHub Desktop.
Inserted into ~/.config/fish/config.fish
# Greating when starting terminal
function fish_greeting
set_color green
echo -n "Welcome, Michael."
end
# fish git prompt
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_showstashstate 'yes'
set __fish_git_prompt_showupstream 'yes'
set __fish_git_prompt_color_branch yellow
# Status Chars
set __fish_git_prompt_char_dirtystate ' '
set __fish_git_prompt_char_stagedstate '→'
set __fish_git_prompt_char_stashstate '↩'
set __fish_git_prompt_char_upstream_ahead '↑'
set __fish_git_prompt_char_upstream_behind '↓'
function fish_prompt
set last_status $status
set_color $fish_color_cwd
printf '%s' (prompt_pwd)
set_color normal
printf '%s ' (__fish_git_prompt)
set_color normal
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment