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

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