aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-04-20 19:25:58 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-04-20 19:25:58 +0000
commitf9af6f7f8c23b8e8ee6a15596a748d8fc83be948 (patch)
tree302504049ce592387069c37d364a360ebf41228a /examples
parent2ab713ab6b095d23c56fa9d505fab8f505d80371 (diff)
downloadrtmux-f9af6f7f8c23b8e8ee6a15596a748d8fc83be948.tar.gz
rtmux-f9af6f7f8c23b8e8ee6a15596a748d8fc83be948.tar.bz2
rtmux-f9af6f7f8c23b8e8ee6a15596a748d8fc83be948.zip
Document -L and -8, fix synopsis.
Diffstat (limited to 'examples')
-rw-r--r--examples/n-marriott.conf15
-rw-r--r--examples/n-marriott.sh8
2 files changed, 9 insertions, 14 deletions
diff --git a/examples/n-marriott.conf b/examples/n-marriott.conf
index 4acb8d13..908f6895 100644
--- a/examples/n-marriott.conf
+++ b/examples/n-marriott.conf
@@ -29,14 +29,15 @@ bind m setw monitor-activity
bind y setw force-width 81
bind u setw force-width 0
+bind D detach \; lock
bind N neww \; splitw -d
-bind ~ split-window "top -s 0.5"
-bind "#" split-window "ncmpc -f ~/.ncmpc.conf"
-bind / command-prompt "split-window 'man %%'"
+bind ~ split-window "exec top -s 0.5"
+bind "#" split-window "exec ncmpc -f ~/.ncmpc.conf"
+bind / command-prompt "split-window 'exec man %%'"
-# First session.s
-new -d -s0 -nirssi 'ssh -t natalya screen -DRS irssi irssi'
+# First session.
+new -d -s0 -nirssi 'exec ssh -t natalya screen -DRS irssi irssi'
setw -t0:0 monitor-activity on
setw -t0:0 aggressive-resize on
set -t0 status-bg green
@@ -54,10 +55,6 @@ neww -d
neww -d
neww -d
neww -d
-neww -d
-neww -d
-neww -d
-neww -d
# Second session.
new -d -s1
diff --git a/examples/n-marriott.sh b/examples/n-marriott.sh
index e1d8ecc5..55cb9815 100644
--- a/examples/n-marriott.sh
+++ b/examples/n-marriott.sh
@@ -5,9 +5,7 @@
# I alias this script to "session" in .profile and use it to reconnect to
# the main session (0) on my main tmux server.
-SOCKET=/tmp/tmux-1000-main
+TMUX="tmux -dLmain"
-TMUX="tmux -S $SOCKET"
-
-$TMUX has -s0 2>/dev/null || $TMUX start
-$TMUX attach -d -s0
+$TMUX has -t0 2>/dev/null || $TMUX -qf ~/.tmux.conf.main start
+exec $TMUX attach -d -t0