diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-09-01 14:01:44 +0800 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-09-01 14:01:44 +0800 |
commit | 753603382ed5b8a77ff72bbcc6ad0f8c0f19ce9f (patch) | |
tree | dda1b2b814935f9ae6ec82b42464e15da4e5065a | |
parent | fc70c47daa3904bdde6c84df92509743bae539d4 (diff) |
workaroud alias e completion issue
-rw-r--r-- | home/xyz/.bashrc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc index 261ebba9..7a220dbf 100644 --- a/home/xyz/.bashrc +++ b/home/xyz/.bashrc @@ -71,7 +71,12 @@ alias c=cfg alias cri='curl -Is' alias crig='curl -Is www.google.com' alias d='sdcv --color' -alias e='"$PAGER"' +# Using '"$PAGER"' will cause complete-alias unable to complete "e <tab>" and +# "e --<tab>". I don't know why alias v='"$EDITOR"' does not have this issue, I +# guess maybe it is related to less has some fzf completion? see `complete -p +# less` output is "complete -F _fzf_path_completion less". Temporary ignore +# shellcheck warnings about this if not met any issues. +alias e="$PAGER" # https://superuser.com/a/1202867 alias fdu="find . -maxdepth 1 -execdir du -sh '{}' \+ | sort -h" alias g=git |