-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
34 lines (26 loc) · 1.16 KB
/
bashrc
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
export EDITOR="/Applications/Emacs.app/Contents/MacOS/Emacs-x86_64-10_9 -nw"
export PYTHONIOENCODING=UTF-8
export LESS=Ri
alias emacs="/Applications/Emacs.app/Contents/MacOS/Emacs-x86_64-10_9"
alias ls="ls -G"
alias cds="cd ~/src/"
alias grep='grep --color=auto -I'
alias free="top -l 1 -s 0 | grep PhysMem | sed 's/, /\'$'\n /g'"
alias rtest="ruby -Itest"
shopt -s -o ignoreeof
ggrep() {
ARGS="$@"
git ls-files | grep -v "^assets" | grep -v "^app/assets" | xargs git grep $ARGS --
}
csvless() {
csvlook $@ | less -S
}
# git autcomplete
# source `brew --prefix`/etc/bash_completion
# set prompt to be a colored path with git_ps1 and error code if nonzero
# TODO: make this relative
source ~/src/dotfiles/bin/git-prompt.sh
export PS1="\[$(tput setaf 5)\]\${?##0}\[$(tput setaf 7)\]\w\[$(tput setaf 3)\]\$(__git_ps1 '(%s)')\[$(tput setaf 7)\]$ \[$(tput sgr0)\]"
# export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
# [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
[[ -s "$HOME/.bash_secrets" ]] && source "$HOME/.bash_secrets" # API keys and secrets not checked into git