-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_profile_osx
33 lines (26 loc) · 985 Bytes
/
bash_profile_osx
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
# OS X Bash Profile
# Last Updated: May 2018
# Author: fortenforge
# colors and bash prompt customization
export CLICOLOR=1
export LSCOLORS=ExBxhxDxCxhxhxhxhxGxGx
export PS1="\[\e[0;32m\][\W]>\[\e[m\] "
# useful aliases
alias search='set -f;search';search() { find . ${2:+-name "$2"} -type f -print0 | xargs -0 grep --color=auto "$1"; }
alias finder="open ."
trash() { mv "$1" ~/.Trash/; }
alias objdump="objdump -x86-asm-syntax intel"
decap() { tail -n +$((1+$1)) $2; }
sum() { paste -s -d+ - | bc; }
alias hack="source ~/Desktop/personal/ctfs/env/bin/activate"
# necessary for 6.035 project
export SCALA_HOME="/usr/local"
# add all known identities to ssh-agent
ssh-add -A 2>/dev/null;
# if local username != rsridhar
alias kinit="kinit [email protected]"
# for RVM
source ~/.profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# delete last word of path in iTerm
bind '\C-w:unix-filename-rubout'