Created
February 18, 2014 16:50
-
-
Save iest/9074768 to your computer and use it in GitHub Desktop.
My Fish config
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
# Turn off greeting | |
set fish_greeting "" | |
# Aliases | |
alias gs='git status' | |
alias ga='git add' | |
alias gc='git commit' | |
alias gl='git log' | |
alias gpr='git pull-request' | |
alias cpwd='pwd | pbcopy' | |
alias doc='cd ~/Documents/Eysys/' | |
eval (gh alias -s) | |
# 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 '↓' | |
# Fish prompt | |
function fish_prompt | |
set last_status $status | |
set_color red | |
printf '➜ ' | |
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