-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
58 lines (47 loc) · 1.68 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
export ZSH="$HOME/.oh-my-zsh"
source $ZSH/oh-my-zsh.sh
# Prevent nice calls on windows
unsetopt BG_NICE
setopt NO_BG_NICE # don't nice background tasks
setopt LOCAL_OPTIONS # allow functions to have local options
setopt LOCAL_TRAPS # allow functions to have local traps
setopt COMPLETE_ALIASES # completion for aliases
# aliases, functions, etc. {{{
[[ -e ~/.antidote ]] && source ~/.antidote || echo "Plugins not loaded."
[[ -e ~/.env ]] && source ~/.env
[[ -e ~/.path ]] && source ~/.path
[[ -e ~/.colors ]] && source ~/.colors
[[ -e ~/z.sh ]] && source ~/z.sh
[[ -e ~/.alias ]] && source ~/.alias || echo "Aliases not loaded."
[[ -e ~/.function ]] && source ~/.function || echo "Functions not loaded."
[[ -e ~/.ignored-stuff ]] && source ~/.ignored-stuff
[[ -e ~/.extra-aliases ]] && source ~/.extra-aliases
[[ -e ~/scripts/.script-source ]] && source ~/scripts/.script-source
# ZLE bindings, vi mode etc.
[[ -e ~/.zle ]] && source ~/.zle
# }}}
# Set pagers {{{
if [[ "$(uname 2> /dev/null)" != "Linux" ]]; then
# OSX
export EDITOR="nvim"
export PAGER="nvim -R"
# older versions of nvim
# export MANPAGER="nvim -c 'set ft=man' -"
# export MANPAGER="nvim -c 'set ft=man' -c 'set ft=man.php' -"
# new versions of nvim
export MANPAGER="nvim +Man\!"
else
# LINUX
export EDITOR="nvim"
export PAGER="nvim -R"
export MANPAGER="less"
fi
# }}}
fpath=(~/.zsh.d/ $fpath)
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='rg --files --smart-case'
export GITHUB_TOKEN=$(<~/.github-token)
# >>>> Vagrant command completion (start)
fpath=(/opt/vagrant/embedded/gems/2.3.4/gems/vagrant-2.3.4/contrib/zsh $fpath)
compinit
# <<<< Vagrant command completion (end)