mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 23:19:25 +00:00
Use 'auto' as an adverb, not a namespace
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
# To auto start it, add the following to zshrc:
|
||||
#
|
||||
# # Auto launch GNU Screen at start-up.
|
||||
# zstyle -t ':omz:plugin:screen:auto' start 'yes'
|
||||
# zstyle -t ':omz:plugin:screen' auto-start 'yes'
|
||||
#
|
||||
|
||||
# Aliases
|
||||
@ -17,7 +17,7 @@ alias sn="screen -U -S"
|
||||
alias sr="screen -a -A -U -D -R"
|
||||
|
||||
# Auto Start
|
||||
if [[ -z "$STY" ]] && zstyle -t ':omz:plugin:screen:auto' start; then
|
||||
if [[ -z "$STY" ]] && zstyle -t ':omz:plugin:screen' auto-start; then
|
||||
session="$(
|
||||
screen -list 2> /dev/null \
|
||||
| sed '1d;$d' \
|
||||
|
@ -9,7 +9,7 @@
|
||||
# To auto start it, add the following to zshrc:
|
||||
#
|
||||
# # Auto launch tmux at start-up.
|
||||
# zstyle -t ':omz:plugin:tmux:auto' start 'yes'
|
||||
# zstyle -t ':omz:plugin:tmux' auto-start 'yes'
|
||||
#
|
||||
# Warning:
|
||||
# Tmux is known to cause kernel panics on Mac OS X.
|
||||
@ -21,7 +21,7 @@ alias ta="tmux attach-session"
|
||||
alias tl="tmux list-sessions"
|
||||
|
||||
# Auto Start
|
||||
if [[ -z "$TMUX" ]] && zstyle -t ':omz:plugin:tmux:auto' start; then
|
||||
if [[ -z "$TMUX" ]] && zstyle -t ':omz:plugin:tmux' auto-start; then
|
||||
tmux_session='#OMZ'
|
||||
|
||||
if ! tmux has-session -t "$tmux_session" 2> /dev/null; then
|
||||
|
Reference in New Issue
Block a user