sesh: Created preconfigured sessions
This commit is contained in:
1
sesh/.stow-local-ignore
Normal file
1
sesh/.stow-local-ignore
Normal file
@@ -0,0 +1 @@
|
||||
setup
|
||||
25
sesh/dot-config/sesh/sesh.toml
Normal file
25
sesh/dot-config/sesh/sesh.toml
Normal file
@@ -0,0 +1,25 @@
|
||||
# Hide all scratch sessions
|
||||
blacklist = ["scratch-*"]
|
||||
|
||||
# Scratch sessions rename themselves to something unique and are hidden from the overview
|
||||
[[session]]
|
||||
name = "scratch"
|
||||
startup_command = "tmux rename-session scratch-$(echo -n $(date) | sha256sum | cut -c1-4) && clear"
|
||||
|
||||
[[session]]
|
||||
name = "automation_rs"
|
||||
path = "~/Projects/rust/automation_rs/"
|
||||
startup_command = "nvim"
|
||||
windows = ["shell"]
|
||||
|
||||
[[session]]
|
||||
name = "olympus"
|
||||
startup_command = "ssh olympus && exit"
|
||||
|
||||
[[session]]
|
||||
name = "niestern_sander"
|
||||
path = "~/Projects/ALTEN/niestern_sander/"
|
||||
startup_command = "$DOTFILES/sesh/setup/niestern_sander.sh"
|
||||
|
||||
[[window]]
|
||||
name = "shell"
|
||||
15
sesh/setup/niestern_sander.sh
Executable file
15
sesh/setup/niestern_sander.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if ! systemctl is-active --quiet docker; then
|
||||
echo "Starting docker..."
|
||||
systemctl start docker
|
||||
fi
|
||||
|
||||
devcontainer up --workspace-folder .
|
||||
|
||||
tmux rename-window nvim
|
||||
tmux new-window -n "ros" "devcontainer exec --workspace-folder . bash"
|
||||
tmux new-window -n "shell"
|
||||
tmux select-window -t :-2
|
||||
|
||||
devcontainer exec --workspace-folder . nvim
|
||||
Reference in New Issue
Block a user