From f0dbb9427a54e8c05f7b06c9da15309179dcde6a Mon Sep 17 00:00:00 2001 From: Taeyeon Mori Date: Sat, 24 Nov 2018 15:08:12 +0100 Subject: [PATCH] zsh: Add useful tmux default behavior --- zsh/zshrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index 48e55b7..5cb107a 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -82,6 +82,17 @@ if (( $+commands[nvim] )); then alias vim=nvim fi +# +# tmux +# +function tmux { + if [ $# -gt 0 ]; then + command tmux "$@" + else + command tmux new -As default + fi +} + # # BusyBox