Compare commits

...

2 Commits

4 changed files with 46 additions and 0 deletions

1
sesh/.stow-local-ignore Normal file
View File

@@ -0,0 +1 @@
setup

View 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
View 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

View File

@@ -11,6 +11,8 @@ set -sg escape-time 0
set -g history-limit 5000 set -g history-limit 5000
set -g detach-on-destroy off # don't exit from tmux when closing a session
# Setup vi-mode with better keybindings # Setup vi-mode with better keybindings
# TODO: Escape does not work properly for leaving # TODO: Escape does not work properly for leaving
setw -g mode-keys vi setw -g mode-keys vi
@@ -75,3 +77,6 @@ bind-key -n M-9 select-window -t 9
bind-key -n M-0 select-window -t 10 bind-key -n M-0 select-window -t 10
bind-key "a" run-shell "sesh-select" bind-key "a" run-shell "sesh-select"
bind-key x kill-pane
bind-key X kill-session