diff --git a/home/private_dot_config/zsh/functions/pmodload b/home/private_dot_config/zsh/functions/pmodload deleted file mode 100644 index a04c5de..0000000 --- a/home/private_dot_config/zsh/functions/pmodload +++ /dev/null @@ -1,5 +0,0 @@ -# function pmodload { - # if you are using Prezto, you'll need an empty pmodload function -# } - -# vim: ft=zsh sw=2 ts=2 et diff --git a/home/private_dot_config/zsh/functions/tn b/home/private_dot_config/zsh/functions/tn new file mode 100644 index 0000000..61062ff --- /dev/null +++ b/home/private_dot_config/zsh/functions/tn @@ -0,0 +1,9 @@ +#!/usr/bin/env zsh +##? create a new tmux session +##? use current directory name as a fallback + +if [ -z "$1" ]; then + tmux new-session -s "${PWD:A:t2}" +else + tmux new-session -s "$1" +fi diff --git a/home/private_dot_config/zsh/zexists.d/cmd/tmux.zsh b/home/private_dot_config/zsh/zexists.d/cmd/tmux.zsh index 0582d8b..40eede2 100644 --- a/home/private_dot_config/zsh/zexists.d/cmd/tmux.zsh +++ b/home/private_dot_config/zsh/zexists.d/cmd/tmux.zsh @@ -3,6 +3,6 @@ alias t-labbook="$DOTFILES_DIR/tmux/labbook.sh" alias tmux="tmux -f $HOME/.config/tmux/tmux.conf" alias t='tmux' alias ta='tmux attach -t' -alias tn='tmux new-session -s' +# alias tn='tmux new-session -s' alias tl='tmux list-sessions'