ohmyzsh/plugins/tmux/tmux.plugin.zsh
2011-12-01 01:21:11 -05:00

19 lines
396 B
Bash

# TODO: move elsewhere
IRC=($commands[weechat-curses] $commands[irssi])
if (( $+commands[tmux] )); then
[[ -z $TMUX ]] && exec tmux
if [[ -n $IRC ]]; then
irc() {
if tmux has -t irc >/dev/null; then
tmux switch -t irc
else
TMUX="" tmux new -ds irc $IRC[1]
tmux switch -t irc
fi
}
fi
else
omz_log_mgs "notfound: plugin requires tmux"
fi