dotfiles/home/private_dot_config/zsh/functions/executable_tn

10 lines
186 B
Bash

#!/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