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 | 9a78740b6b521d5885dc2275c4803fe7e4ecd5f8 (patch) | |
tree | 905af13e7b9ad0a24eb12bdac967e36d5d144fa5 /home/xyz | |
parent | a861e7d3f5e9851fed0f2bd2bcaef1c6810bf4a2 (diff) |
workaroud alias e completion issue
Diffstat (limited to 'home/xyz')
-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 d0bd28df..4ba5dcc5 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 |