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
# A minimal Fish prompt based on the gitstatus prompt. | |
# Original gitstatus prompt from https://github.com/godfat/fish_prompt-gitstatus | |
# Adopted by OMF at https://github.com/oh-my-fish/theme-gitstatus | |
function _git_branch_name | |
echo (command git symbolic-ref HEAD 2> /dev/null | sed -e 's|^refs/heads/||') | |
end | |
function _git_status_symbol | |
set -l git_status (git status --porcelain 2> /dev/null) |
OlderNewer