Skip to content

Instantly share code, notes, and snippets.

@Zelnox
Created September 25, 2014 23:13
Show Gist options
  • Save Zelnox/769b682bb9a4db65eea0 to your computer and use it in GitHub Desktop.
Save Zelnox/769b682bb9a4db65eea0 to your computer and use it in GitHub Desktop.
.config/fish/config.fish
# Hi
#
# Tmuxinator
#[[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] and source $HOME/.tmuxinator/scripts/tmuxinator
# Exports
set -x MYSQL_SOCKET /tmp/mysql.sock
#set -x PATH $PATH:/usr/local/share/python # to locate powerline binary
set -x EDITOR /usr/local/bin/vim
# in .config/fish/config.fish:
# 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 eeeeee
printf '%s' (whoami)
set_color ff11ff
printf '@'
set_color 00ccff
printf '%s ' (hostname|cut -d . -f 1)
set_color normal
set_color $fish_color_cwd
printf '%s' (prompt_pwd)
set_color normal
printf '%s ' (__fish_git_prompt)
set_color normal
end
function ls
command ls -G $argv
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment