Skip to content

Commit

Permalink
[zsh] tmp: fix opening existing folders
Browse files Browse the repository at this point in the history
  • Loading branch information
meain committed Feb 17, 2024
1 parent f442b0a commit e8c73a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh/.config/zsh/functions
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit e8c73a4

Please sign in to comment.