diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-13 19:04:22 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-13 19:04:22 -0500 |
commit | 719c3734ff2d247b386e398b4cf98aa62c6f6cc0 (patch) | |
tree | 324522598ff677ee092e4e1047304dcc7d5f7567 /.local/bin/tmux-r | |
parent | bf434758d9c60c323d571bc1e2e329edaad06fa3 (diff) |
Cool new sshchoose prompt
Diffstat (limited to '.local/bin/tmux-r')
-rwxr-xr-x | .local/bin/tmux-r | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/.local/bin/tmux-r b/.local/bin/tmux-r index 14dd08a..6b4819c 100755 --- a/.local/bin/tmux-r +++ b/.local/bin/tmux-r @@ -1,5 +1,5 @@ #!/bin/sh -# This script ensures that i3 will spawn a youtube tui. + session="R" # Check if the session exists, discarding output @@ -7,12 +7,11 @@ session="R" tmux has-session -t $session 2>/dev/null if [ $? != 0 ]; then - # Set up your session - tmux new-session -d -s "$session" R -q --no-save - # R -q --no-save - # ([ -e /usr/bin/R ] && R -q --no-save) || python -q + # Set up your session + tmux new-session -d -s "$session" R -q --no-save + # R -q --no-save + # ([ -e /usr/bin/R ] && R -q --no-save) || python -q fi # Attach to created session tmux attach-session -t $session - |