diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-09-01 14:01:44 +0800 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-09-02 13:42:29 +0800 |
commit | e4961d805af9da097496cfc3c6d8034e1bd4ae06 (patch) | |
tree | 72c19adf954e8092e8248d12b1d0a44814bf2130 | |
parent | d427e8c65a73d5ff918f1ff06bf05821a5e9fdae (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 eb83766e..c61dcc78 100644 --- a/home/xyz/.bashrc +++ b/home/xyz/.bashrc @@ -53,7 +53,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 |