summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-10 17:43:34 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-10 17:43:34 -0500
commit7347b5285ec3e8d6e5e36f51233c92c79f987e74 (patch)
treea66f5966d2337fcbabec525a0f4a58b347d4c3a0
parente0b49dc051695db9df3f93de20f0f3469e79f7cc (diff)
downloadconf-7347b5285ec3e8d6e5e36f51233c92c79f987e74.tar.gz
conf-7347b5285ec3e8d6e5e36f51233c92c79f987e74.zip
simplify default tmux sessions
-rw-r--r--sh/aliases10
-rw-r--r--tmux.conf9
2 files changed, 5 insertions, 14 deletions
diff --git a/sh/aliases b/sh/aliases
index 98a58d4..1b789a8 100644
--- a/sh/aliases
+++ b/sh/aliases
@@ -23,11 +23,11 @@ alias bishamon='ssh doy@bishamon'
alias tozt="ssh doy@tozt.net"
# }}}
# tmux sessions {{{
-alias main='tmux a -t main'
-alias chat='tmux a -t chat'
-alias work='tmux a -t work'
-alias docs='tmux a -t docs'
-alias misc='tmux a -t misc'
+alias main='tmux new -As main'
+alias chat='tmux new -As chat'
+alias work='tmux new -As work'
+alias docs='tmux new -As docs'
+alias misc='tmux new -As misc'
# }}}
# other {{{
alias pm="find lib -type f"
diff --git a/tmux.conf b/tmux.conf
index 6831e20..fdcbfd2 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -47,12 +47,3 @@ bind -T copy-mode-vi ^C run "tmux send-keys -X copy-selection-and-cancel; tmux r
bind ^V run "tmux-clipboard paste clipboard"
unbind ^B
-
-%if #{||:#{==:#{host},hush},#{==:#{host},st-doy1.local}}
-# set up default sessions
-new-session -s work -c "${HOME}/work"
-new-session -s chat -c "${HOME}"
-new-session -s main -c "${HOME}"
-new-session -s docs -c "${HOME}"
-new-session -s misc -c "${HOME}"
-%endif