-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bash_macosx
62 lines (51 loc) · 1.84 KB
/
.bash_macosx
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# iterm2
# . ~/.iterm2_shell_integration.bash
export PS1='\n\[\033[01;35m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[33m\]$(pgb)\[\033[00m\]\$ '
alias open='/usr/bin/open'
alias vi='/usr/local/bin/vim'
# Command shortcuts
alias duh='du -d 0 -h'
# Open apps
alias pbcopy='reattach-to-user-namespace pbcopy'
alias open='reattach-to-user-namespace open'
alias skim='open -a Skim'
alias chrome='open -a Google\ Chrome'
alias safari='open -a Safari'
alias jnote='jupyter notebook --notebook-dir $HOME/dev'
alias subl='open -a Sublime\ Text'
# Server aliases
alias s_merci='autossh -M 10024 merci -t "tmux attach"'
alias s_pam='autossh -M 10025 pamplona -t "tmux attach"'
alias s_pop='autossh -M 10026 joker -t "tmux attach"'
alias s_g21='autossh -M 10027 smtgpu21 -t "tmux attach || tmux"'
alias s_43="ssh nhn -t 43"
alias s_43s="ssh nhn -t 43s"
alias s_mtcompare="ssh nhn -t mtcompare"
alias s_mtcompares="ssh nhn -t mtcompares"
# Others
alias nw="vi $WIKI_DIR/careers/numberworks.markdown"
alias pe="vi $WIKI_DIR/others/people.markdown"
alias pa="vi $WIKI_DIR/projects/papago.markdown"
alias mt="vi $WIKI_DIR/dm/mt.markdown"
alias na="vi $WIKI_DIR/careers/naver.markdown"
alias limit_dropbox="cpulimit -p $(pgrep Dropbox) -l 10"
alias limit_amazon="cpulimit -p $(pgrep 'Amazon Drive') -l 10"
# crontab
# [to use vim](http://askubuntu.com/a/55026/138835)
export EDITOR="/usr/local/bin/vim"
# Java
# [Change Java versions](http://superuser.com/a/731099/137947)
# export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"
setjdk() {
export JAVA_HOME=$(/usr/libexec/java_home -v $1)
}
# MacTeX
PATH=$PATH:/Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin
export JYTHON_HOME=/usr/local/Cellar/jython/2.7.0/libexec
#
# Tell grep to highlight matches
export GREP_OPTIONS='--color=auto'
# iterm
# . ~/.iterm2_shell_integration.bash
# rvm
source /Users/lucypark/.rvm/scripts/rvm