summaryrefslogtreecommitdiff
path: root/etc/functions/reload
blob: a97cb70649f03bb51af6984324cb19ee058c60f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
## vim:ft=zsh
## reload the zshrc / some functions
## Usage: reload [function names]

if [[ ${#*} == 0 ]] {
	autoload xsource
	xsource ~/.zshrc
} else {
	local function
	for function in $@; {
		unfunction $function
		autoload $function
	}
}