-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
42 lines (31 loc) · 943 Bytes
/
.bash_profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#emacs keybindings
set -o emacs
#Path stuff
#Add brew install path to PATH
export PATH=/usr/local/bin:$PATH
export PATH=~/.local/bin:$PATH
export PATH=~/.cargo/bin:$PATH
#Hub alias
alias git=hub
#Add bash completion
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
#Add current git branch to prompt
export GITAWAREPROMPT=~/.bash/git-aware-prompt
source $GITAWAREPROMPT/main.sh
export PS1="\u:\w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "
#Set default editor to be neovim
export EDITOR="/usr/local/bin/nvim"
#Postgres data
export PGDATA="/usr/local/var/postgres/"
#Homebrew alias
alias brewup="brew update && brew upgrade"
## Colorize the ls output ##
alias ls='ls -G'
## Use a long listing format ##
alias ll='ls -la -G'
## Show hidden files ##
alias l.='ls -d .*'
export NVM_DIR="/Users/ryanr/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm