-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
56 lines (44 loc) · 1.05 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
via() {
ag -l "$1" | xargs -o vi
}
### OH-MY-ZSHRC
# Path to your oh-my-zsh installation.
if [ -e ~/.omzshrc ]; then
source ~/.omzshrc
fi
### .local/bin
if [ -d ~/.local/bin ]; then
export PATH=~/.local/bin:$PATH
fi
### Brew
if [[ $(uname -m) == 'arm64' ]]; then
export PATH=/opt/homebrew/bin:$PATH
else
export PATH=/usr/local/sbin:$PATH
fi
### CMake (Compiling Aseprite)
export PATH=$PATH:/Applications/CMake.app/Contents/bin
### ALIASES
if [ -f ~/dotfiles/aliases ]; then
source ~/dotfiles/aliases
fi
### VIM-LIKE ZSH
export EDITOR="vim"
bindkey -v
# vi style incremental search
bindkey '^R' history-incremental-search-backward
bindkey '^S' history-incremental-search-forward
bindkey '^P' history-search-backward
bindkey '^N' history-search-forward
# Auto change directory (don't need to type `cd`)
setopt AUTO_CD
### rbenv
if [ -x "$(command -v rbenv)" ]; then
eval "$(rbenv init - zsh)"
fi
### direnv
eval "$(direnv hook zsh)"
### asdf
if [ -e /opt/homebrew/opt/asdf/libexec/asdf.sh ]; then
source /opt/homebrew/opt/asdf/libexec/asdf.sh
fi