Compare commits
2 Commits
cd24c6a2c8
...
229b0ae54f
| Author | SHA1 | Date | |
|---|---|---|---|
|
229b0ae54f
|
|||
|
ebf75793ae
|
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
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user