aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 157da7d..d3555fc 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -42,3 +42,11 @@ bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey -M emacs '^P' history-substring-search-up
bindkey -M emacs ^N history-substring-search-down
+
+if [[ -z $TMUX ]]; then
+ function start_tmux {
+ tmux new -d -s vericert -c ~/projects/vericert
+ tmux new -d -s main -c ~
+ }
+ tmux attach || { start_tmux && tmux attach }
+fi