Skip to content

Instantly share code, notes, and snippets.

@Fingel
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fingel/3ec4df500485913d3632 to your computer and use it in GitHub Desktop.
Save Fingel/3ec4df500485913d3632 to your computer and use it in GitHub Desktop.
config.fish
set -g __fish_git_prompt_show_informative_status 1
set -g __fish_git_prompt_hide_untrackedfiles 1
set -g __fish_git_prompt_color_branch magenta bold
set -g __fish_git_prompt_showupstream "informative"
set -g __fish_git_prompt_char_upstream_ahead "↑"
set -g __fish_git_prompt_char_upstream_behind "↓"
set -g __fish_git_prompt_char_upstream_prefix ""
set -g __fish_git_prompt_char_stagedstate "●"
set -g __fish_git_prompt_char_dirtystate "✚"
set -g __fish_git_prompt_char_untrackedfiles "…"
set -g __fish_git_prompt_char_conflictedstate "✖"
set -g __fish_git_prompt_char_cleanstate "✔"
set -g __fish_git_prompt_color_dirtystate blue
set -g __fish_git_prompt_color_stagedstate yellow
set -g __fish_git_prompt_color_invalidstate red
set -g __fish_git_prompt_color_untrackedfiles $fish_color_normal
set -g __fish_git_prompt_color_cleanstate green bold
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
if not set -q __fish_prompt_normal
set -g __fish_prompt_normal (set_color normal)
end
# PWD
set_color $fish_color_cwd
echo -n (prompt_pwd)
set_color normal
printf '%s ' (__fish_git_prompt)
# Line 2
echo
set_color white
echo -n (date +%T)
if not test $last_status -eq 0
set_color $fish_color_error
else
set_color white
end
echo -n ' $ '
end
function ls
command ls --color=auto $argv
end
function grep
command grep --color=auto $argv
end
function fish_greeting
cowsay (fortune -a)
end
set PATH $PATH /usr/local/heroku/bin /home/austin/Downloads/android-sdk-linux/tools /home/austin/Downloads/android-sdk-linux/platform-tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment