Merge branch 'master' of git.ianonavy.com:ianonavy/prezto
This commit is contained in:
commit
4a38a65bfa
@ -16,9 +16,12 @@ elif (( $+commands[pyenv] )); then
|
|||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
|
|
||||||
# Prepend PEP 370 per user site packages directory, which defaults to
|
# Prepend PEP 370 per user site packages directory, which defaults to
|
||||||
# ~/Library/Python on Mac OS X and ~/.local elsewhere, to PATH.
|
# ~/Library/Python on Mac OS X and ~/.local elsewhere, to PATH. The
|
||||||
|
# path can be overridden using PYTHONUSERBASE.
|
||||||
else
|
else
|
||||||
if [[ "$OSTYPE" == darwin* ]]; then
|
if [[ -n "$PYTHONUSERBASE" ]]; then
|
||||||
|
path=($PYTHONUSERBASE/bin $path)
|
||||||
|
elif [[ "$OSTYPE" == darwin* ]]; then
|
||||||
path=($HOME/Library/Python/*/bin(N) $path)
|
path=($HOME/Library/Python/*/bin(N) $path)
|
||||||
else
|
else
|
||||||
# This is subject to change.
|
# This is subject to change.
|
||||||
|
|||||||
@ -21,12 +21,12 @@ if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" ]] && ( \
|
|||||||
( [[ -n "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' remote ) ||
|
( [[ -n "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' remote ) ||
|
||||||
( [[ -z "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' local ) \
|
( [[ -z "$SSH_TTY" ]] && zstyle -t ':prezto:module:tmux:auto-start' local ) \
|
||||||
); then
|
); then
|
||||||
tmux_session='prezto'
|
tmux start-server
|
||||||
|
|
||||||
# Create a first 'prezto' session if tmux is starting.
|
# Create a 'prezto' session if no session has been defined in tmux.conf.
|
||||||
if ! tmux has-session 2> /dev/null; then
|
if ! tmux has-session 2> /dev/null; then
|
||||||
|
tmux_session='prezto'
|
||||||
tmux \
|
tmux \
|
||||||
start-server \; \
|
|
||||||
new-session -d -s "$tmux_session" \; \
|
new-session -d -s "$tmux_session" \; \
|
||||||
set-option -t "$tmux_session" destroy-unattached off &> /dev/null
|
set-option -t "$tmux_session" destroy-unattached off &> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user