mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Add a tmux plugin for some cool interoperability.
This commit is contained in:
parent
81136dc642
commit
014ffee924
1 changed files with 17 additions and 0 deletions
17
plugins/tmux/tmux.plugin.zsh
Normal file
17
plugins/tmux/tmux.plugin.zsh
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# 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
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue