summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-09-01 14:01:44 +0800
committerXiao Pan <xyz@flylightning.xyz>2025-09-01 14:01:44 +0800
commit753603382ed5b8a77ff72bbcc6ad0f8c0f19ce9f (patch)
treedda1b2b814935f9ae6ec82b42464e15da4e5065a
parentfc70c47daa3904bdde6c84df92509743bae539d4 (diff)
workaroud alias e completion issue
-rw-r--r--home/xyz/.bashrc7
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