summaryrefslogtreecommitdiff
path: root/home/xyz/.bashrc
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-11-06 14:31:33 -0700
committerxyz <gky44px1999@gmail.com>2021-11-06 14:31:33 -0700
commitc9f228106d43a3d4cf08d7fa10eba0d6521d6d01 (patch)
treeabc3b80c70827189aa34891756746cb644fdc50f /home/xyz/.bashrc
parent1429d9bdf446c2d6272925a4dc029215a24ea81b (diff)
zoxide eval use --no-aliases
Diffstat (limited to 'home/xyz/.bashrc')
-rw-r--r--home/xyz/.bashrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc
index 070f969c..757b0b66 100644
--- a/home/xyz/.bashrc
+++ b/home/xyz/.bashrc
@@ -80,7 +80,8 @@ alias zqi='zoxide query -i'
#alias pactree='pactree -c'
#eval "$(zoxide init posix --hook prompt --no-aliases)"
-eval "$(zoxide init bash)"
+# if no --no-aliases, when tab complete a dir name contain spaces, bash will not escape spaces, don't know why, maybe bug?
+eval "$(zoxide init bash --no-aliases)"
z () {
__zoxide_z "$@" && l