diff --git a/session/session.plugin.zsh b/session/session.plugin.zsh index d79840b..9c099ea 100644 --- a/session/session.plugin.zsh +++ b/session/session.plugin.zsh @@ -8,6 +8,12 @@ session() { echo "$fg[red]error:$reset_color invalid argument: $3" return 1 fi + declare -A hosts + if [ -f ~/.config/session ]; then + source ~/.config/session + fi + local url=$hosts[$host] + host=${url:-$host} if [[ "$TMUX" == "" ]]; then local cmd="tmux new-session -As $name" if [[ "$host" != "" ]]; then