Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3778472
D2850.id7262.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
871 B
Referenced Files
None
Subscribers
None
D2850.id7262.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 05:11 (21 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2263894
Default Alt Text
D2850.id7262.diff (871 B)
Attached To
Mode
D2850: Deploy tmux-reattach
Attached
Detach File
Event Timeline
Log In to Comment