Skip to content
Snippets Groups Projects
Commit 5bf5105f authored by Bruno Pinto's avatar Bruno Pinto
Browse files

Merge pull request #68 from krisleech/fishface-theme

parents f50e96b8 098351a9
Branches
No related merge requests found
## FishFace
Shows an ASCII fish which is blue or green when in a git repo.
![fishface theme](https://https://f.cloud.github.com/assets/66143/1224622/ec9660d8-2750-11e3-9c96-cb7a5a69eada.png)
# name: FishFace
function _git_branch_name
echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end
function _is_git_dirty
echo (command git status -s --ignore-submodules=dirty ^/dev/null)
end
function fish_prompt
set -l blue (set_color -o blue)
set -l green (set_color -o green)
if [ (_git_branch_name) ]
echo -n -s "$green><(((\"> "
else
echo -n -s "$blue><(((\"> "
end
end
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment