3 ms·
I've been using Fish on my Mac for a while as well as some VPS' I have. At work I just installed it on our dev server. It has a build in git status script you
by Osiris 14y ago
I've been using Fish on my Mac for a while as well as some VPS' I have. At work I just installed it on our dev server.
It has a build in git status script you can include in your prompt that's awesome. Here's my fish prompt (note __fish_git_prompt):
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
Sample:
~/G/Calendar (branch_name * ↩ =)
- kanemathers 14y agoFor bash/zsh users: https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh https://github.com/git/git/blob/master/contrib/completion/gi...