-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
83 lines (63 loc) · 2.21 KB
/
.zshrc
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
export ZSH_DISABLE_COMPFIX=1
export ZSH=$HOME/.oh-my-zsh
set editing-mode vi
set keymap vi-command
fpath=($HOME/.zsh/func $fpath)
typeset -U fpath
plugins=(docker gitfast)
export TERM="xterm-256color"
export ZSH_THEME='my'
source $ZSH/oh-my-zsh.sh
alias ll='ls -al'
alias please='sudo'
alias pleease='sudo \!-1'
alias grm='git rm $(git ls-files --deleted)'
alias pie='node -p -i -e'
alias pss='please python -m SimpleHTTPServer 80'
alias irebase='git rebase --autosquash -i $(git merge-base develop HEAD)'
alias gti='git'
alias glist="git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'"
export PATH=/usr/local/opt
export PATH=/usr/bin:$PATH
export PATH=/bin:$PATH
export PATH=/usr/sbin:$PATH
export PATH=/sbin:$PATH
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH
export PATH=~/usr/local:$PATH
export PATH=/usr/local/Cellar/ruby/1.9.3-p362/bin:$PATH
export PATH=/usr/local/share/npm/bin:$PATH
export PATH=/usr/local/share/npm/lib/node_modules/bin:$PATH
export PATH=/usr/local/share/npm/bin:$PATH
export PATH=/opt/nodejs/4/bin:$PATH
export PATH=/usr/local/share/dotnet:$PATH
export ANDROID_HOME=~/Library/Android/sdk
zstyle ':urlglobber' url-other-schema
if [[ "$OSTYPE" == "linux-gnu" ]]; then
export PS1="$(hostname) ${PS1}"
fi
tmuxify() {
dirname=$(basename $PWD)
sessions=$(tmux list-sessions -F "#{session_name}" 2>/dev/null)
new_session=true
for session in $(tmux list-sessions -F "#{session_name}"); do
if [ $session = $dirname ]
then
new_session=false
fi
done
if [ $new_session = true ]
then
tmux new-session -s $dirname
else
tmux attach -t ${dirname}
fi
}
# added by travis gem
[ -f /Users/megatolya/.travis/travis.sh ] && source /Users/megatolya/.travis/travis.sh
ssh-add ~/.ssh/id_rsa &>/dev/null
#eval "$(docker-machine env default)"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"