Skip to content

Instantly share code, notes, and snippets.

@rudkx
Last active April 6, 2019 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rudkx/af762b0797fa8495ab32789e6d6057fb to your computer and use it in GitHub Desktop.
Save rudkx/af762b0797fa8495ab32789e6d6057fb to your computer and use it in GitHub Desktop.
Bash profile
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
if [ -e $(xcode-select -p)/usr/share/git-core/git-prompt.sh ]
then
source $(xcode-select -p)/usr/share/git-core/git-prompt.sh
fi
if [ -e $(xcode-select -p)/usr/share/git-core/git-completion.bash ]
then
source $(xcode-select -p)/usr/share/git-core/git-completion.bash
fi
if [ -n "$SSH_CLIENT" ]; then
PS1="ssh \h $ "
else
PS1='[\W$(__git_ps1 " (%s)")]\$ '
fi
export P4CONFIG=.p4config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment