Page MenuHomeDevCentral

D2850.diff
No OneTemporary

D2850.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, Nov 26, 03:59 (21 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2263894
Default Alt Text
D2850.diff (871 B)

Event Timeline