summaryrefslogtreecommitdiff
path: root/etc/functions/reload
blob: afa634f07bdd981feed38bc7ad941e61d92f842f (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 ]] {
	source ~/.zshrc
	rehash
} else {
	local function
	for function in $@; {
		unfunction $function
		autoload $function
	}
}