updates sessions to split opening with and without a specific terminal
This commit is contained in:
29
sesh
29
sesh
@@ -1,10 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
directory=~/linux-setup/tmux-sessions
|
||||
|
||||
usage() {
|
||||
echo "Usage: $0 [-t] <session>"
|
||||
echo " -t: Add <session>"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Check if no parameter is provided
|
||||
if [ $# -eq 0 ]; then
|
||||
usage
|
||||
fi
|
||||
|
||||
# Check for optional flag
|
||||
if [ "$1" == "-t" ]; then
|
||||
# Check if no session parameter is provided after the flag
|
||||
if [ $# -lt 2 ]; then
|
||||
usage
|
||||
fi
|
||||
flatpak run org.wezfurlong.wezterm start $directory/$2.sh
|
||||
else
|
||||
exec "$directory/$1.sh"
|
||||
fi
|
||||
|
||||
# Check if no parameter is provided
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Error: No parameter provided. Please provide a session."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Echo the provided session parameter
|
||||
echo "Session: $1"
|
||||
flatpak run org.wezfurlong.wezterm start ~/linux-setup/tmux-sessions/$1.sh
|
||||
|
||||
3
tmux-sessions/linkedag-web.sh
Executable file
3
tmux-sessions/linkedag-web.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
firefox https://bigdrumdigital.teamwork.com/app/projects/620980/time &
|
||||
firefox https://3.basecamp.com/5456546/buckets/36188668/card_tables/7047790073 &
|
||||
mongodb-compass &
|
||||
@@ -1,6 +1,6 @@
|
||||
firefox https://bigdrumdigital.teamwork.com/app/projects/620980/time &
|
||||
firefox https://3.basecamp.com/5456546/buckets/36188668/card_tables/7047790073 &
|
||||
mongodb-compass &
|
||||
# firefox https://bigdrumdigital.teamwork.com/app/projects/620980/time &
|
||||
# firefox https://3.basecamp.com/5456546/buckets/36188668/card_tables/7047790073 &
|
||||
# mongodb-compass &
|
||||
|
||||
tmux new-session -s linkedag -d -c ~/repos/linkedag-backend -n backend
|
||||
tmux split-window -h -c ~/repos/linkedag-backend
|
||||
|
||||
15
tmux-sessions/syncopotamus-web.sh
Executable file
15
tmux-sessions/syncopotamus-web.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
firefox https://3.basecamp.com/5456546/buckets/34127086/card_tables/6496384013
|
||||
|
||||
# tmux new-session -s syncopotamus -d -c ~/repos/syncopotamus-go -n backend
|
||||
# tmux split-window -h -c ~/repos/syncopotamus-go
|
||||
# tmux send-keys -t syncopotamus:backend.0 'nvim' C-m
|
||||
# tmux send-keys -t syncopotamus:backend.1 'go run .' C-m
|
||||
#
|
||||
# tmux new-window -c ~/repos/syncopotamus-svelte -n frontend
|
||||
# tmux split-window -h -c ~/repos/syncopotamus-svelte
|
||||
# tmux send-keys -t syncopotamus:frontend.0 'nvim' C-m
|
||||
# tmux send-keys -t syncopotamus:frontend.1 'npm run dev' C-m
|
||||
#
|
||||
# tmux select-window -t syncopotamus:backend
|
||||
# tmux select-pane -t 0
|
||||
# tmux -2 attach-session -t syncopotamus
|
||||
@@ -1,5 +1,3 @@
|
||||
firefox https://3.basecamp.com/5456546/buckets/34127086/card_tables/6496384013 &
|
||||
|
||||
tmux new-session -s syncopotamus -d -c ~/repos/syncopotamus-go -n backend
|
||||
tmux split-window -h -c ~/repos/syncopotamus-go
|
||||
tmux send-keys -t syncopotamus:backend.0 'nvim' C-m
|
||||
|
||||
Reference in New Issue
Block a user