Skip to content

Instantly share code, notes, and snippets.

@Sotilrac
Last active February 9, 2016 20:45
Show Gist options
  • Save Sotilrac/253c9ee4916c2d163b0d to your computer and use it in GitHub Desktop.
Save Sotilrac/253c9ee4916c2d163b0d to your computer and use it in GitHub Desktop.
# Place in .config/fish/
set fish_greeting function fish_greeting
set -g -x PATH ~/.local/bin $PATH
#set -x PYTHONPATH :/opt/choregraphe-suite-2.4.2.26-linux64/lib
# Place in .config/fish/functions
# Words of wisdom
# Requires fortune (sudo apt-get install fortunes)
function fish_greeting
fortune
end
# Place in .config/fish/functions
# Fish git prompt
set __fish_git_prompt_show_informative_status 'yes'
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_showstashstate 'no'
set __fish_git_prompt_showuntrackedfiles 'no'
set __fish_git_prompt_showupstream 'informative'
set __fish_git_prompt_color_branch purple
set __fish_git_prompt_color_dirtystate red
function fish_prompt
#echo #space between commands
#set_color yellow
#printf '%s' (whoami)
#set_color normal
#printf ' @ '
set_color cyan
printf '%s' (hostname|cut -d . -f 1)
set_color normal
printf ': '
set_color $fish_color_cwd
printf '%s' (prompt_pwd)
set_color normal
# Line 2
#echo
if test $VIRTUAL_ENV
printf "(%s)" (set_color blue)(basename $VIRTUAL_ENV)(set_color normal)
end
printf '%s' (__fish_git_prompt)
printf '$ '
set_color normal
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment