Skip to content

Instantly share code, notes, and snippets.

@YusukeIwaki
Created July 17, 2018 05:53
Show Gist options
  • Save YusukeIwaki/d6efd8e91f83f272f75d135686b7457f to your computer and use it in GitHub Desktop.
Save YusukeIwaki/d6efd8e91f83f272f75d135686b7457f to your computer and use it in GitHub Desktop.
eval "$(direnv hook bash)"
export EDITOR=/usr/bin/nano
#export PS1='\h:\W \u\$ ' # もともと入ってた値
source /usr/local/etc/bash_completion.d/git-prompt.sh
source /usr/local/etc/bash_completion.d/git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\h:\W $(if [ -d .git ]; then __git_ps1 " \e[32m(%s)\e[m" ; else echo \u; fi) \$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment