mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 09:19:25 +00:00
Compare commits
2 Commits
stashes
...
pull/598-s
Author | SHA1 | Date | |
---|---|---|---|
b2d84afacf | |||
7629171239 |
@ -6,13 +6,9 @@
|
||||
# Zeh Rizzatti <zehrizzatti@gmail.com>
|
||||
#
|
||||
|
||||
# Load manually installed NVM into the shell session.
|
||||
# Load NVM into the shell session.
|
||||
if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
|
||||
source "$HOME/.nvm/nvm.sh"
|
||||
|
||||
# Load package manager installed NVM into the shell session.
|
||||
elif (( $+commands[brew] )) && [[ -d "$(brew --prefix nvm 2>/dev/null)" ]]; then
|
||||
source $(brew --prefix nvm)/nvm.sh
|
||||
fi
|
||||
|
||||
# Return if requirements are not found.
|
||||
|
@ -34,10 +34,11 @@ if (( ! $+commands[python] && ! $+commands[pyenv] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Load virtualenvwrapper into the shell session.
|
||||
if (( $+commands[virtualenvwrapper.sh] )); then
|
||||
# Load virtualenvwrapper into the shell session, unless requested not to
|
||||
zstyle -t ':prezto:module:python' skip-virtualenvwrapper-init
|
||||
if (( $? && $+commands[virtualenvwrapper.sh] )); then
|
||||
# Set the directory where virtual environments are stored.
|
||||
export WORKON_HOME="$HOME/.virtualenvs"
|
||||
export WORKON_HOME="${WORKON_HOME:-$HOME/.virtualenvs}"
|
||||
|
||||
# Disable the virtualenv prompt.
|
||||
VIRTUAL_ENV_DISABLE_PROMPT=1
|
||||
|
@ -16,14 +16,10 @@ fi
|
||||
|
||||
_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system'
|
||||
|
||||
if grep -q 'xattrs' <(rsync --help 2>&1); then
|
||||
_rsync_cmd="${_rsync_cmd} --acls --xattrs"
|
||||
fi
|
||||
|
||||
# Mac OS X and HFS+ Enhancements
|
||||
# http://help.bombich.com/kb/overview/credits#opensource
|
||||
if [[ "$OSTYPE" == darwin* ]] && grep -q 'file-flags' <(rsync --help 2>&1); then
|
||||
_rsync_cmd="${_rsync_cmd} --crtimes --fileflags --protect-decmpfs --force-change"
|
||||
_rsync_cmd="${_rsync_cmd} --crtimes --acls --xattrs --fileflags --protect-decmpfs --force-change"
|
||||
fi
|
||||
|
||||
alias rsync-copy="${_rsync_cmd}"
|
||||
|
Reference in New Issue
Block a user