Rework tmux plugin a bit

This commit is contained in:
Simon Gomizelj 2011-12-01 01:45:19 -05:00
commit aa5c0bcf14
2 changed files with 11 additions and 3 deletions

3
lib/defaults.vim Normal file
View file

@ -0,0 +1,3 @@
# Default applications
IRC=($commands[weechat-curses] $commands[irssi])

View file

@ -1,8 +1,13 @@
# TODO: move elsewhere
IRC=($commands[weechat-curses] $commands[irssi])
# Enable autostarting of tmux with:
#
# zstyle :omz:plugins:tmux autostart on
#
if (( $+commands[tmux] )); then
[[ -z $TMUX ]] && exec tmux
local state
zstyle -a :omz:plugins:autostart state
[[ state == "on" && -z $TMUX ]] && exec tmux
if [[ -n $IRC ]]; then
irc() {