Created
November 1, 2018 16:36
-
-
Save pbredenberg/8d61bbd3f4bcbdd8fa4219f9bb6a655b to your computer and use it in GitHub Desktop.
Paul's bash_profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#basics | |
export PATH=/usr/bin:/usr/sbin:/bin:/sbin:~/bin | |
source ~/.bashrc | |
# nice colors | |
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' | |
# nvm | |
export NVM_DIR=~/.nvm | |
source ~/.nvm/nvm.sh | |
enter_directory(){ | |
if [ "$PWD" != "$PREV_PWD" ]; then | |
PREV_PWD="$PWD"; | |
if [ -e ".nvmrc" ]; then | |
nvm use; | |
fi | |
fi | |
} | |
export PROMPT_COMMAND="$PROMPT_COMMAND enter_directory;" | |
#git | |
gri() { | |
COMMIT_NUMBER=1; | |
if [ "$1" ]; then | |
COMMIT_NUMBER=$1; | |
fi | |
git rebase -i HEAD~$COMMIT_NUMBER | |
} | |
source ~/git-completion.bash | |
source ~/git-prompt.sh | |
alias gs="git status" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment