Merge pull request #346 from korzeniewskipl/fishfix

Fishfix
master
Martin Gondermann 8 years ago committed by GitHub
commit bc607a7133
  1. 6
      gitprompt.fish

@ -1,8 +1,10 @@
# name: bash-git-prompt # name: bash-git-prompt
# author: Mariusz Smykuła <mariuszs@gmail.com> # author: Mariusz Smykuła <mariuszs@gmail.com>
function fish_prompt
if not set -q __GIT_PROMPT_DIR if not set -q __GIT_PROMPT_DIR
set __GIT_PROMPT_DIR ~/.gitprompt set __GIT_PROMPT_DIR ~/.bash-git-prompt
end end
# Colors # Colors
@ -37,8 +39,6 @@ set GIT_PROMPT_UNTRACKED "…"
set GIT_PROMPT_STASHED "⚑ " set GIT_PROMPT_STASHED "⚑ "
set GIT_PROMPT_CLEAN "$BGreen" set GIT_PROMPT_CLEAN "$BGreen"
function fish_prompt
# Various variables you might want for your PS1 prompt instead # Various variables you might want for your PS1 prompt instead
set Time (date +%R) set Time (date +%R)
set PathShort (pwd|sed "s=$HOME=~=") set PathShort (pwd|sed "s=$HOME=~=")

Loading…
Cancel
Save