Skip to content

Commit 0184d58

Browse files
committed
refactor(f): simplify tm session management logic
- Replaced custom `tmux_attach_session_if_needed` function with direct `tmux` commands in `default.nix` - Removed the now-unused `tmux_attach_session_if_needed.fish` function file
1 parent 16f3850 commit 0184d58

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

home-manager/programs/fish/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
shellInit = ''
2121
# for tmux
2222
if type -q tmux && test -z $TMUX && status --is-login
23-
tmux_attach_session_if_needed
23+
tmux attach-session -t default || tmux new-session -s default
2424
end
2525
2626
# suppress fish_greeting

home-manager/programs/fish/functions/tmux_attach_session_if_needed.fish

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)