Made dt a function that takes an optional argument

This commit is contained in:
Anthony Cicchetti 2019-08-25 16:43:49 -04:00
parent 6f98f10148
commit f60e7ed27e

View file

@ -133,7 +133,12 @@ export PATH="$(yarn global bin):$PATH"
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
alias dt="tmux new-session -A -s DefaultSession"
function dt() {
local session_name
session_name=${1:-DefaultSession}
tmux new-session -A -s $session_name
}
if [[ -a $HOME/.zshsrc ]]; then
source $HOME/.zshsrc