-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathzshrc
45 lines (37 loc) · 1.2 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
# FIX: tmuxinator mangles the $GEM_HOME environment variable. This is a quick and dirty fix.
# https://github.com/tmuxinator/tmuxinator/issues/841
unset GEM_HOME
# Configure the ZSH cache directory for autocompletion so Zsh doesn't create a bunch of files in the
# home directory.
export ZSH_COMPDUMP=$ZSH/cache/.zcompdump-$HOST
# Set the Oh My Zsh directory.
export ZSH="$HOME/.oh-my-zsh"
# Oh My Zsh plugins
plugins=(
colored-man-pages
command-not-found
httpie
rails
zsh-autosuggestions
zsh-syntax-highlighting
)
# Source Oh My Zsh
source $ZSH/oh-my-zsh.sh
# Disable autocorrect
unsetopt correct_all
# Prevent OA from getting typed when hitting <esc><up> in the terminal.
# https://superuser.com/a/1546939
bindkey "^[^[OA" up-line-or-beginning-search
bindkey "^[^[OB" down-line-or-beginning-search
bindkey "^[^[OC" forward-char
bindkey "^[^[OD" backward-char
# Source the configuration files
source "$HOME/.config/zsh/path.zsh"
source "$HOME/.config/zsh/aliases-and-commands.zsh"
source "$HOME/.config/zsh/fancy-control-z.zsh"
source "$HOME/.config/zsh/fzf.zsh"
source "$HOME/.config/zsh/prompt.zsh"
source "$HOME/.config/zsh/tmux.zsh"
for CONFIG_FILE in $HOME/.config/zsh/*; do
source $CONFIG_FILE
done