-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
91 lines (77 loc) · 1.8 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
83
84
85
86
87
88
89
90
91
#!/usr/bin/env zsh
# 00_PS1_guard.sh
[ -z "$PS1" ] && return
# 05_tmux.sh
export ZSH_TMUX_AUTOSTART=true
if [ -n "$TMUX" ]; then
tmup ()
{
echo -n "Updating to latest tmux environment...";
export IFS=",";
for line in $(tmux showenv -t $(tmux display -p "#S") | tr "\n" ",");
do
if [[ $line == -* ]]; then
unset $(echo $line | cut -c2-);
else
export $line;
fi;
done;
unset IFS;
echo "Done"
}
fi
# 05_zsh_tmux.sh
export ZSH_TMUX_AUTOSTART=true
# 10_locale.sh
export LANG='en_US.UTF-8'
export LANGUAGE='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'
export LESSCHARSET='UTF-8'
# zsh/20_paths.sh
path=(
"/Users/lavoie_sl/bin"
"/usr/X11/bin"
"/usr/local/sbin"
"/usr/local/bin"
"/usr/sbin"
"/usr/bin"
"/sbin"
"/bin"
)
# 20_variables.sh
export EDITOR=subl
export HOMEBREW_GITHUB_API_TOKEN=INVALID
export HOMEBREW_TEMP=/usr/local/tmp
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home
# 30_grep_aliases.sh
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
# 30_rvm.sh
source "/Users/lavoie_sl/.rvm/scripts/rvm"
# 30_ssh_settitle.sh
if [ -n "$TMUX" ]; then
settitle() {
printf "\033k$1\033\\"
}
ssh() {
settitle "$(echo $* | head -c 20)"
command ssh "$@"
settitle "zsh"
}
fi
# 50_aliases.sh
alias cacl="find app/logs -name '*.log' -delete && app/console ca:cl --no-warmup"
alias g="git"
alias git-root="cd \"\$(git root)\""
alias rrm="rm -Rf"
alias vihosts="sudo vi /etc/hosts"
# zsh/90_zsh_options.sh
unsetopt correct
unsetopt correct_all
setopt APPEND_HISTORY
unsetopt SHARE_HISTORY
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_REDUCE_BLANKS
# 95_cd.sh
cd