Skip to content

Commit

Permalink
Merge pull request #346 from korzeniewskipl/fishfix
Browse files Browse the repository at this point in the history
Fishfix
  • Loading branch information
magicmonty authored Aug 30, 2017
2 parents 5501128 + 9c82bed commit bc607a7
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions gitprompt.fish
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
# name: bash-git-prompt
# author: Mariusz Smykuła <mariuszs@gmail.com>

if not set -q __GIT_PROMPT_DIR
set __GIT_PROMPT_DIR ~/.gitprompt
end
function fish_prompt

# Colors
# Reset
set ResetColor (set_color normal) # Text Reset

# Regular Colors
set Red (set_color red) # Red
set Yellow (set_color yellow); # Yellow
set Blue (set_color blue) # Blue
set WHITE (set_color white)

# Bold
set BGreen (set_color -o green) # Green

# High Intensty
set IBlack (set_color -o black) # Black

# Bold High Intensty
set Magenta (set_color -o purple) # Purple

# Default values for the appearance of the prompt. Configure at will.
set GIT_PROMPT_PREFIX "["
set GIT_PROMPT_SUFFIX "]"
set GIT_PROMPT_SEPARATOR "|"
set GIT_PROMPT_BRANCH "$Magenta"
set GIT_PROMPT_STAGED "$Red"
set GIT_PROMPT_CONFLICTS "$Red"
set GIT_PROMPT_CHANGED "$Blue"
set GIT_PROMPT_REMOTE " "
set GIT_PROMPT_UNTRACKED ""
set GIT_PROMPT_STASHED ""
set GIT_PROMPT_CLEAN "$BGreen"
if not set -q __GIT_PROMPT_DIR
set __GIT_PROMPT_DIR ~/.bash-git-prompt
end

function fish_prompt
# Colors
# Reset
set ResetColor (set_color normal) # Text Reset

# Regular Colors
set Red (set_color red) # Red
set Yellow (set_color yellow); # Yellow
set Blue (set_color blue) # Blue
set WHITE (set_color white)

# Bold
set BGreen (set_color -o green) # Green

# High Intensty
set IBlack (set_color -o black) # Black

# Bold High Intensty
set Magenta (set_color -o purple) # Purple

# Default values for the appearance of the prompt. Configure at will.
set GIT_PROMPT_PREFIX "["
set GIT_PROMPT_SUFFIX "]"
set GIT_PROMPT_SEPARATOR "|"
set GIT_PROMPT_BRANCH "$Magenta"
set GIT_PROMPT_STAGED "$Red"
set GIT_PROMPT_CONFLICTS "$Red"
set GIT_PROMPT_CHANGED "$Blue"
set GIT_PROMPT_REMOTE " "
set GIT_PROMPT_UNTRACKED ""
set GIT_PROMPT_STASHED ""
set GIT_PROMPT_CLEAN "$BGreen"

# Various variables you might want for your PS1 prompt instead
set Time (date +%R)
Expand Down Expand Up @@ -92,7 +92,7 @@ function fish_prompt
if [ "$GIT_UNTRACKED" != "0" ]
set STATUS "$STATUS$GIT_PROMPT_UNTRACKED$GIT_UNTRACKED$ResetColor"
end

if [ "$GIT_STASHED" != "0" ]
set STATUS "$STATUS$GIT_PROMPT_STASHED$GIT_STASHED$ResetColor"
end
Expand Down

0 comments on commit bc607a7

Please sign in to comment.