summaryrefslogtreecommitdiff
path: root/home/xyz/.bashrc
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-09-01 14:01:44 +0800
committerXiao Pan <xyz@flylightning.xyz>2025-09-02 13:42:29 +0800
commita91baf78b26f27091f738a2b6aba8b132884d247 (patch)
tree382d6c645c97a48a871c59f2acb5f4358c7b3dd2 /home/xyz/.bashrc
parent24f9539fc939359e29a27a0651628e0c5baefb52 (diff)
workaroud alias e completion issue
Diffstat (limited to 'home/xyz/.bashrc')
-rw-r--r--home/xyz/.bashrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc
index 667848ae..ace62b8b 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