From e8c73a492557bb81adfa2f2ef2c4d11566a76dfe Mon Sep 17 00:00:00 2001 From: Abin Simon Date: Sat, 17 Feb 2024 13:50:37 +0530 Subject: [PATCH] [zsh] tmp: fix opening existing folders --- zsh/.config/zsh/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/.config/zsh/functions b/zsh/.config/zsh/functions index dd5004a1..95f92cb5 100755 --- a/zsh/.config/zsh/functions +++ b/zsh/.config/zsh/functions @@ -13,7 +13,7 @@ jj() { } tmp() { - [ -z "$1" ] && cd /tmp/workspaces && + [ -n "$1" ] && cd /tmp/workspaces && cd $(ls -t | fzf --preview 'ls -A {}') && return 0 r="/tmp/workspaces/$(xxd -l3 -ps /dev/urandom)"