fix(tmux): use tilda as home directory

ref: https://github.com/sharkdp/fd/discussions/1424#discussioncomment-7706716
This commit is contained in:
Léana 江 2023-11-29 19:50:52 +01:00 committed by Léana 江
parent 0528f9ea29
commit 4e37332ee8
2 changed files with 5 additions and 2 deletions

View file

@ -12,6 +12,7 @@ function tmux_attach --description "attach to existing tmux sessions"
end
set -U TMUX_LAST (tmux display-message -p '#S')
if [ -z $TMUX ]
tmux attach-session -t $selected
else