-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
36 lines (28 loc) · 810 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
export DOTFILES=~/.dotfiles
# fpath
fpath=($DOTFILES/zfunctions $DOTFILES/vendor/zsh-completions/src $fpath)
# Source all files in "source"
function src() {
local file
# local file
if [[ "$1" ]]; then
source "$DOTFILES/source/$1"
else
# Source all .sh and .zsh files
for file ($DOTFILES/source/*sh); do
source $file
done
fi
}
# Run dotfiles script, then source.
function dotfiles() {
$DOTFILES/bin/dotfiles "$@" && src
}
src
#------------------------------------------------
# Needs to be here to prevent volta install script from re-adding it
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
# tabtab source for packages
# uninstall by removing these lines
[[ -f ~/.config/tabtab/zsh/__tabtab.zsh ]] && . ~/.config/tabtab/zsh/__tabtab.zsh || true