-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
114 lines (92 loc) · 2.67 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
104
105
106
107
108
109
110
111
112
113
114
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
#
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="miloshadzic"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(
# asdf
brew
bundler
# chruby
gem
git
ruby
rails
)
source $ZSH/oh-my-zsh.sh
# User configuration
export PATH="/opt/homebrew/bin:/usr/local/bin:/bin:/usr/sbin:/sbin:/usr/bin:$PATH"
PATH=$PATH:"$HOME/Library/Android/sdk/platform-tools"
unsetopt nomatch
# asdf configuration
# set one of these in ~/.zshrc.local
#
# Intel Mac OS
# . /usr/local/opt/asdf/asdf.sh
# M1
# . /opt/homebrew/opt/asdf/libexec/asdf.sh
# rbenv configuration
# export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"
# eval "$(rbenv init -)"
# chruby configuration
# chruby ruby-2.6.6
# source /usr/local/share/chruby/chruby.sh
# source /usr/local/share/chruby/auto.sh
# GPG setup
export GPG_TTY=$(tty)
# Golang configuration
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
# Oracle configuration
export PATH="/opt/instaclient:$PATH"
export DYLD_LIBRARY_PATH="/opt/instaclient/:$DYLD_LIBRARY_PATH"
export PKG_CONFIG_PATH=/opt/instaclient/pkgconfig
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
export EDITOR='nvim'
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
source $HOME/.aliases
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
timezsh() {
shell=${1-$SHELL}
for i in $(seq 1 10); do /usr/bin/time $shell -i -c exit; done
}
timezshplugin() {
# Load all of the plugins that were defined in ~/.zshrc
for plugin ($plugins); do
timer=$(($(gdate +%s%N)/1000000))
if [ -f $ZSH_CUSTOM/plugins/$plugin/$plugin.plugin.zsh ]; then
source $ZSH_CUSTOM/plugins/$plugin/$plugin.plugin.zsh
elif [ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]; then
source $ZSH/plugins/$plugin/$plugin.plugin.zsh
fi
now=$(($(gdate +%s%N)/1000000))
elapsed=$(($now-$timer))
echo $elapsed":" $plugin
done
}
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
autoload -Uz compinit
compinit
fi
source "${HOME}/.zshrc.local"