-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
106 lines (76 loc) · 2.44 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
92
93
94
95
96
97
98
99
100
101
102
103
#!/usr/bin/env zsh
# auto pull in antibody
apphome=${0:a:h}
# init antibody
[[ ! -d $apphome/bundle ]] && mkdir $apphome/bundle
[[ ! -d $apphome/bundle/antibody ]] && git clone https://github.com/yanyingwang/antibody $apphome/bundle/antibody
source $apphome/bundle/antibody/antibody.zsh
# oh my zsh
[[ ! -d $apphome/bundle/oh-my-zsh ]] && git clone https://github.com/robbyrussell/oh-my-zsh.git $apphome/bundle/oh-my-zsh
export ZSH=$apphome/bundle/oh-my-zsh
ZSH_THEME="robbyrussell"
#ZSH_THEME="afowler"
#ZSH_THEME="sunrise"
#ZSH_THEME="sorin"
plugins=(brew colorize encode64 extract history sudo git
ruby rvm rails bundler gem
colored-man-pages man ubuntu man command-not-found postgres)
source $ZSH/oh-my-zsh.sh
#antibody oh-my-zsh <<EOF
#rails
#EOF
#zsh-syntax-highlighting
#zsh-history-substring-search
#waga
#
# antibody bundle plugins
antibody github zsh-users/zsh-syntax-highlighting
antibody github zsh-users/zsh-autosuggestions
antibody github zsh-users/zsh-history-substring-search
antibody github supercrabtree/k
antibody github yanyingwang/waga
antibody github z-shell/zsh-navigation-tools
#antibody github zdharma-continuum/zsh-navigation-tools # psprint/zsh-navigation-tools
#antibody oh-my-zsh theme robbyrussell
#antibody oh-my-zsh git
#antibody oh-my-zsh colored-man aliases rails
#ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=black"
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=239"
if [[ $(uname) == "Darwin" ]]
then
source $apphome/zshrc.macos
fi
if [[ $(uname) == "Linux" ]]
then
source $apphome/zshrc.linux
fi
# chromeos crew
if [[ $(whoami) == "chronos" ]]
then
source $apphome/zshrc.chromeos
fi
source $apphome/zshrc.plangs
source $apphome/zshrc.racket
# ssh tunnel
alias ssh-tunnel-on='ssh -fN $1'
alias ssh-tunnel--check='ssh -O check $1'
alias ssh-tunnel-off='ssh -O exit $1'
#export LANG="en_US.UTF-8"
#export LC_COLLATE="en_US.UTF-8"
#export LC_CTYPE="en_US.UTF-8"
#export LC_MESSAGES="en_US.UTF-8"
#export LC_MONETARY="en_US.UTF-8"
#export LC_NUMERIC="en_US.UTF-8"
#export LC_TIME="en_US.UTF-8"
#export LC_ALL="en_US.UTF-8"
### history
HISTFILE=~/.zsh_history
HISTSIZE=999999999
SAVEHIST=$HISTSIZE
HISTFILESIZE=$HISTSIZE
# Avoid duplicates
HISTCONTROL=ignoredups:erasedups
# When the shell exits, append to the history file instead of overwriting it
# shopt -s histappend
# After each command, append to the history file and reread it
#PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"