-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zsh_root
More file actions
20 lines (15 loc) · 703 Bytes
/
Copy path.zsh_root
File metadata and controls
20 lines (15 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ZSH_ROOT_FILE="${${(%):-%N}:A}"
ZSH_ROOT_DIR="${ZSH_ROOT_FILE:h}"
source "$ZSH_ROOT_DIR/.zsh_plugins"
source "$ZSH_ROOT_DIR/.zsh_p10k"
# Custom keybindings must be after oh-my-zsh setup to survive bindkey -e
bindkey "^]" history-beginning-search-backward
bindkey "^[" history-beginning-search-forward
bindkey '^\' autosuggest-accept
alias vi=nvim
if [[ ! -e "$HOME/.tmux.conf" && ! -L "$HOME/.tmux.conf" && -f "$ZSH_ROOT_DIR/.tmux.conf" ]]; then
ln -s "$ZSH_ROOT_DIR/.tmux.conf" "$HOME/.tmux.conf"
fi
if [[ ! -e "$HOME/.config/nvim/init.lua" && ! -L "$HOME/.config/nvim/init.lua" && -f "$ZSH_ROOT_DIR/nvim/init.lua" ]]; then
ln -s "$ZSH_ROOT_DIR/nvim/init.lua" "$HOME/.config/nvim/init.lua"
fi