mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Rework tmux plugin a bit
This commit is contained in:
parent
2836d2c365
commit
aa5c0bcf14
2 changed files with 11 additions and 3 deletions
3
lib/defaults.vim
Normal file
3
lib/defaults.vim
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Default applications
|
||||||
|
|
||||||
|
IRC=($commands[weechat-curses] $commands[irssi])
|
||||||
|
|
@ -1,8 +1,13 @@
|
||||||
# TODO: move elsewhere
|
# Enable autostarting of tmux with:
|
||||||
IRC=($commands[weechat-curses] $commands[irssi])
|
#
|
||||||
|
# zstyle :omz:plugins:tmux autostart on
|
||||||
|
#
|
||||||
|
|
||||||
if (( $+commands[tmux] )); then
|
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
|
if [[ -n $IRC ]]; then
|
||||||
irc() {
|
irc() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue