Page MenuHomeDevCentral

D2850.id7262.diff
No OneTemporary

D2850.id7262.diff

diff --git a/roles/core/userland-software/files/tmux-reattach.sh b/roles/core/userland-software/files/tmux-reattach.sh
new file mode 100755
--- /dev/null
+++ b/roles/core/userland-software/files/tmux-reattach.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+tmux -2 -u attach || tmux -2 -u
diff --git a/roles/core/userland-software/init.sls b/roles/core/userland-software/init.sls
--- a/roles/core/userland-software/init.sls
+++ b/roles/core/userland-software/init.sls
@@ -105,6 +105,11 @@
file.managed:
- source: salt://roles/core/userland-software/files/tmux.conf
+{{ dirs.bin }}/tmux-reattach:
+ file.managed:
+ - source: salt://roles/core/userland-software/files/tmux-reattach.sh
+ - mode: 755
+
# -------------------------------------------------------------
# System administration utilities
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 1, 10:33 (22 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2168248
Default Alt Text
D2850.id7262.diff (871 B)

Event Timeline