diff options
author | clarkzjw <[email protected]> | 2019-11-02 10:12:16 +0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2019-11-02 10:12:16 +0800 |
commit | 7d93d563b88c2cce4967332a23560147b9708ca8 (patch) | |
tree | 5c79b91baea2edc899da079d299cd90933200ee3 | |
parent | 20ecfb843c7e9cff03896eca051d674aae69ca25 (diff) | |
download | conf.d-7d93d563b88c2cce4967332a23560147b9708ca8.tar.gz |
+ add zsh
-rw-r--r-- | zsh/.zshrc | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..0e89046 --- /dev/null +++ b/zsh/.zshrc | |||
@@ -0,0 +1,128 @@ | |||
1 | # If you come from bash you might have to change your $PATH. | ||
2 | # export PATH=$HOME/bin:/usr/local/bin:$PATH | ||
3 | |||
4 | # Path to your oh-my-zsh installation. | ||
5 | export ZSH="/Users/clarkzjw/.oh-my-zsh" | ||
6 | |||
7 | # Set name of the theme to load. Optionally, if you set this to "random" | ||
8 | # it'll load a random theme each time that oh-my-zsh is loaded. | ||
9 | # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | ||
10 | ZSH_THEME="robbyrussell" | ||
11 | |||
12 | # Set list of themes to load | ||
13 | # Setting this variable when ZSH_THEME=random | ||
14 | # cause zsh load theme from this variable instead of | ||
15 | # looking in ~/.oh-my-zsh/themes/ | ||
16 | # An empty array have no effect | ||
17 | # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) | ||
18 | |||
19 | # Uncomment the following line to use case-sensitive completion. | ||
20 | # CASE_SENSITIVE="true" | ||
21 | |||
22 | # Uncomment the following line to use hyphen-insensitive completion. Case | ||
23 | # sensitive completion must be off. _ and - will be interchangeable. | ||
24 | # HYPHEN_INSENSITIVE="true" | ||
25 | |||
26 | # Uncomment the following line to disable bi-weekly auto-update checks. | ||
27 | # DISABLE_AUTO_UPDATE="true" | ||
28 | |||
29 | # Uncomment the following line to change how often to auto-update (in days). | ||
30 | # export UPDATE_ZSH_DAYS=13 | ||
31 | |||
32 | # Uncomment the following line to disable colors in ls. | ||
33 | # DISABLE_LS_COLORS="true" | ||
34 | |||
35 | # Uncomment the following line to disable auto-setting terminal title. | ||
36 | # DISABLE_AUTO_TITLE="true" | ||
37 | |||
38 | # Uncomment the following line to enable command auto-correction. | ||
39 | # ENABLE_CORRECTION="true" | ||
40 | |||
41 | # Uncomment the following line to display red dots whilst waiting for completion. | ||
42 | # COMPLETION_WAITING_DOTS="true" | ||
43 | |||
44 | # Uncomment the following line if you want to disable marking untracked files | ||
45 | # under VCS as dirty. This makes repository status check for large repositories | ||
46 | # much, much faster. | ||
47 | # DISABLE_UNTRACKED_FILES_DIRTY="true" | ||
48 | |||
49 | # Uncomment the following line if you want to change the command execution time | ||
50 | # stamp shown in the history command output. | ||
51 | # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | ||
52 | HIST_STAMPS="mm/dd/yyyy" | ||
53 | |||
54 | # Would you like to use another custom folder than $ZSH/custom? | ||
55 | # ZSH_CUSTOM=/path/to/new-custom-folder | ||
56 | |||
57 | # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | ||
58 | # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | ||
59 | # Example format: plugins=(rails git textmate ruby lighthouse) | ||
60 | # Add wisely, as too many plugins slow down shell startup. | ||
61 | plugins=( | ||
62 | git | ||
63 | ) | ||
64 | |||
65 | source $ZSH/oh-my-zsh.sh | ||
66 | |||
67 | # User configuration | ||
68 | |||
69 | # export MANPATH="/usr/local/man:$MANPATH" | ||
70 | |||
71 | # You may need to manually set your language environment | ||
72 | # export LANG=en_US.UTF-8 | ||
73 | |||
74 | # Preferred editor for local and remote sessions | ||
75 | # if [[ -n $SSH_CONNECTION ]]; then | ||
76 | # export EDITOR='vim' | ||
77 | # else | ||
78 | # export EDITOR='mvim' | ||
79 | # fi | ||
80 | |||
81 | # Compilation flags | ||
82 | # export ARCHFLAGS="-arch x86_64" | ||
83 | |||
84 | # ssh | ||
85 | # export SSH_KEY_PATH="~/.ssh/rsa_id" | ||
86 | |||
87 | # Set personal aliases, overriding those provided by oh-my-zsh libs, | ||
88 | # plugins, and themes. Aliases can be placed here, though oh-my-zsh | ||
89 | # users are encouraged to define aliases within the ZSH_CUSTOM folder. | ||
90 | # For a full list of active aliases, run `alias`. | ||
91 | # | ||
92 | # Example aliases | ||
93 | # alias zshconfig="mate ~/.zshrc" | ||
94 | # alias ohmyzsh="mate ~/.oh-my-zsh" | ||
95 | |||
96 | alias vim="nvim" | ||
97 | alias vi="nvim" | ||
98 | alias dc="cd /Users/clarkzjw/Documents/Dropbox/Work/Code" | ||
99 | alias ssh="ssh -o ServerAliveInterval=60" | ||
100 | alias t="/Users/clarkzjw/scripts/t.py" | ||
101 | alias please="sudo" | ||
102 | alias jmeter="/Users/clarkzjw/Dropbox/Work/Code/apache-jmeter-3.2/bin/jmeter.sh" | ||
103 | alias blj="ssh [email protected]" | ||
104 | |||
105 | function addPATH { | ||
106 | case ":$PATH:" in | ||
107 | *":$1:"*) :;; # already there | ||
108 | *) PATH="$1:$PATH";; # or PATH="$PATH:$1" | ||
109 | esac | ||
110 | } | ||
111 | |||
112 | export GOPATH=/Users/clarkzjw/Documents/Dropbox/Work/Code/go | ||
113 | export WORKSPACE=/Users/clarkzjw/Documents/Dropbox/Work/Code | ||
114 | export GOROOT=/Users/clarkzjw/Dropbox/Work/Code/goroot/go1.12.12/go | ||
115 | |||
116 | addPATH /usr/local/opt/curl/bin | ||
117 | addPATH /usr/local/opt/openssl/bin | ||
118 | addPATH /usr/local/opt/gettext/bin | ||
119 | addPATH /usr/local/opt/python/libexec/bin | ||
120 | addPATH /usr/local/texlive/2018/bin/x86_64-darwin | ||
121 | addPATH /Users/clarkzjw/Documents/Dropbox/Work/Code/go/bin | ||
122 | addPATH /usr/local/opt/gnu-tar/libexec/gnubin | ||
123 | addPATH /usr/local/opt/gnu-sed/libexec/gnubin | ||
124 | addPATH /Users/clarkzjw/.local/bin | ||
125 | addPATH /usr/local/opt/coreutils/libexec/gnubin | ||
126 | addPATH /usr/local/opt/mysql-client/bin | ||
127 | addPATH /Users/clarkzjw/Dropbox/Work/Code/go/bin | ||
128 | |||