Made dt a function that takes an optional argument
This commit is contained in:
parent
6f98f10148
commit
f60e7ed27e
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue