From d0947320bc1b3a1223097749affe798ba225f979 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Wed, 22 Feb 2023 15:03:30 +0800 Subject: Update --- zsh/zshrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'zsh') diff --git a/zsh/zshrc b/zsh/zshrc index 0c5c9c0..c11e798 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -14,7 +14,13 @@ source $SETTING_DIR/zsh/completion.zsh source $SETTING_DIR/bin/init/load-settings.sh # Reload zshrc -alias .="source $ZDOTDIR/.zshrc" +function .() { + if [ $# -eq 0 ]; then + source $ZDOTDIR/.zshrc + else + source $@ + fi +} # Options setopt extended_glob -- cgit v1.2.3-70-g09d2