-
Notifications
You must be signed in to change notification settings - Fork 10
/
.zshrc
42 lines (37 loc) · 797 Bytes
/
.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
# Zsh dotdir folder (not actually setting ZDOTDIR tho, no point?)
export ZSH=~/.zsh
# Data directory
[[ -d $ZSH/data ]] || mkdir $ZSH/data
# Source some third party stuff
fpath=($ZSH/contrib $fpath)
# Helper for various 'is X on my path? then Y' tests in the below dotfiles
function have() {
which $1 &>/dev/null
}
# Source my dotfiles (in explicit order)
typeset -a DOTFILES
DOTFILES=(
pre-local
options
exports
mid-local
completion
aliases
nixos
history
python
ruby
perl
wk
prompt
zmv
fzf
local
)
for file in $DOTFILES; do
file=$ZSH/$file
[[ -f $file ]] && source $file
done
# Sanity cleanup of PATH, which otherwise can grow duplicate entries (making
# troubleshooting harder than it needs to be)
typeset -U PATH