This website works better with JavaScript.
Home
Explore
Help
Sign In
tovi
/
dotfiles
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
feat: attach to tmux session from outside using tmux-sessionizer
master
Tovi Jaeschke-Rogers
8 months ago
parent
75118befd9
commit
e1901118af
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
.local/bin/tmux-sessionizer
+ 5
- 0
.local/bin/tmux-sessionizer
View File
@ -18,6 +18,11 @@ if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then
exit 0
fi
if [[ -z $TMUX ]]; then
tmux attach-session -t $selected_name
exit 0
fi
if ! tmux has-session -t=$selected_name 2> /dev/null; then
tmux new-session -ds $selected_name -c $selected
fi
Write
Preview
Loading…
Cancel
Save