From f52d12ef243dde26904432c59e3717bd9dc8b7df Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Wed, 8 Feb 2023 23:38:49 +0800 Subject: Update --- alias | 3 --- zsh/zshrc | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/alias b/alias index 62e023b..9314f85 100644 --- a/alias +++ b/alias @@ -106,9 +106,6 @@ ps1.swap() { fd() { echo /proc/$$/fd; ls -l /proc/$$/fd; } port() { sudo lsof -i :$1; } alias ports='sudo lsof -i -Pn | grep LISTEN' -.() { - source ${@:-$HOME/.$(basename $SHELL)rc} -} alias ll='ls -lh' alias lla='ls -lha' llw() { which $1 | xargs ls -alh; } diff --git a/zsh/zshrc b/zsh/zshrc index 44d41c1..636cb72 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -6,12 +6,13 @@ export SETTING_DIR=$HOME/helper source $SETTING_DIR/tools/init/load-settings.sh fpath=($SETTING_DIR/zsh $fpath) +# Reload zshrc +alias .="source $0" # Options setopt extended_glob setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history file. - # Edit Command Line autoload -Uz edit-command-line; zle -N edit-command-line bindkey -- "^X^E" edit-command-line -- cgit v1.2.3-70-g09d2