From c9f228106d43a3d4cf08d7fa10eba0d6521d6d01 Mon Sep 17 00:00:00 2001 From: xyz Date: Sat, 6 Nov 2021 14:31:33 -0700 Subject: zoxide eval use --no-aliases --- home/xyz/.bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'home/xyz/.bashrc') 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 -- cgit v1.2.3-70-g09d2