Sorted out git prompt

This commit is contained in:
Josh Sherman 2018-01-02 00:02:25 -06:00
parent b83035ccd1
commit b0712d1157
No known key found for this signature in database
GPG key ID: 55B058A80530EF22

37
bashrc
View file

@ -3,28 +3,35 @@
export DOTFILES=$HOME/.dotfiles
export INCLUDES=$HOME/.local/share/dotfiles
RESET=$(tput sgr0)
BLUE=$(tput setaf 4)
GREY=$(tput setaf 244)
RED=$(tput setaf 1)
YELLOW=$(tput setaf 3)
GIT_PROMPT_BRANCH='$YELLOW'
GIT_PROMPT_PREFIX=''
GIT_PROMPT_SUFFIX=''
GIT_PROMPT_CLEAN=''
GIT_PROMPT_START_USER='\n$BLUE\w'
GIT_PROMPT_END_USER='\n$GREY$ $RESET'
GIT_PROMPT_END_ROOT='\n$GREY# $RESET'
source $INCLUDES/bash-git-prompt/gitprompt.sh
source $DOTFILES/env
source $DOTFILES/aliases
source $HOME/.fzf.bash
source /usr/share/bash-completion/bash_completion
eval `dircolors $DOTFILES/dircolors`
bind 'set completion-ignore-case on'
bind 'set show-all-if-ambiguous on'
bind 'TAB:menu-complete'
git_super_status() {
echo ''
}
blue=$(tput setaf 4)
reset=$(tput sgr0)
grey=$(tput setaf 244)
PS1='
\[$blue\]\w $(git_super_status)
\[$grey\]\$ \[$reset\]'
# GIT_PROMPT_ONLY_IN_REPO=1
# GIT_PROMPT_THEME=Solarized
# source $INCLUDES/bash-git-prompt/gitprompt.sh
PS1='\n$BLUE\w\n$GREY$ $RESET'