Follow symlinks for ts()

This commit is contained in:
Sheldon Lee 2023-02-13 21:20:17 +00:00
parent a441cf9ef3
commit ca369775b4

View File

@ -24,7 +24,7 @@ cfg()
# session there with the name of the directory. # session there with the name of the directory.
ts() ts()
{ {
dir=$(find $HOME/.config $HOME/Documents -type d | fzf) dir=$(find -L $HOME/.config $HOME/Documents -type d | fzf)
[ -z "$dir" ] && return [ -z "$dir" ] && return
tmux new -s $(basename "$dir") -c "$dir" tmux new -s $(basename "$dir") -c "$dir"
} }