mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-06-16 04:21:42 +00:00
[#23] Convert utility into a module
This commit is contained in:
14
modules/utility/functions/reload
Normal file
14
modules/utility/functions/reload
Normal file
@ -0,0 +1,14 @@
|
||||
#
|
||||
# Reloads the Zsh configuration.
|
||||
#
|
||||
# Authors:
|
||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
# Reloads ~/.zshrc.
|
||||
local zshrc="$HOME/.zshrc"
|
||||
if [[ -n "$1" ]]; then
|
||||
zshrc="$1"
|
||||
fi
|
||||
source "$zshrc"
|
||||
|
Reference in New Issue
Block a user