diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2023-02-08 23:38:49 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2023-02-08 23:38:49 +0800 |
commit | f52d12ef243dde26904432c59e3717bd9dc8b7df (patch) | |
tree | 73fbd038141baf7875bd0170d952249f22cebb6f | |
parent | c2f17e3706a2596c2612d70e941c6f0d0ea12fe6 (diff) |
Update
-rw-r--r-- | alias | 3 | ||||
-rw-r--r-- | zsh/zshrc | 3 |
2 files changed, 2 insertions, 4 deletions
@@ -106,9 +106,6 @@ ps1.swap() { | |||
106 | fd() { echo /proc/$$/fd; ls -l /proc/$$/fd; } | 106 | fd() { echo /proc/$$/fd; ls -l /proc/$$/fd; } |
107 | port() { sudo lsof -i :$1; } | 107 | port() { sudo lsof -i :$1; } |
108 | alias ports='sudo lsof -i -Pn | grep LISTEN' | 108 | alias ports='sudo lsof -i -Pn | grep LISTEN' |
109 | .() { | ||
110 | source ${@:-$HOME/.$(basename $SHELL)rc} | ||
111 | } | ||
112 | alias ll='ls -lh' | 109 | alias ll='ls -lh' |
113 | alias lla='ls -lha' | 110 | alias lla='ls -lha' |
114 | llw() { which $1 | xargs ls -alh; } | 111 | llw() { which $1 | xargs ls -alh; } |
@@ -6,12 +6,13 @@ export SETTING_DIR=$HOME/helper | |||
6 | source $SETTING_DIR/tools/init/load-settings.sh | 6 | source $SETTING_DIR/tools/init/load-settings.sh |
7 | fpath=($SETTING_DIR/zsh $fpath) | 7 | fpath=($SETTING_DIR/zsh $fpath) |
8 | 8 | ||
9 | # Reload zshrc | ||
10 | alias .="source $0" | ||
9 | 11 | ||
10 | # Options | 12 | # Options |
11 | setopt extended_glob | 13 | setopt extended_glob |
12 | setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history file. | 14 | setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history file. |
13 | 15 | ||
14 | |||
15 | # Edit Command Line | 16 | # Edit Command Line |
16 | autoload -Uz edit-command-line; zle -N edit-command-line | 17 | autoload -Uz edit-command-line; zle -N edit-command-line |
17 | bindkey -- "^X^E" edit-command-line | 18 | bindkey -- "^X^E" edit-command-line |