mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 07:29:09 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			pull/598-s
			...
			stashes
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					b948e3630b | ||
| 
						 | 
					55e4db9429 | 
@@ -6,9 +6,13 @@
 | 
			
		||||
#   Zeh Rizzatti <zehrizzatti@gmail.com>
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
# Load NVM into the shell session.
 | 
			
		||||
# Load manually installed 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,11 +34,10 @@ if (( ! $+commands[python] && ! $+commands[pyenv] )); then
 | 
			
		||||
  return 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Load virtualenvwrapper into the shell session, unless requested not to
 | 
			
		||||
zstyle -t ':prezto:module:python' skip-virtualenvwrapper-init
 | 
			
		||||
if (( $? && $+commands[virtualenvwrapper.sh] )); then
 | 
			
		||||
# Load virtualenvwrapper into the shell session.
 | 
			
		||||
if (( $+commands[virtualenvwrapper.sh] )); then
 | 
			
		||||
  # Set the directory where virtual environments are stored.
 | 
			
		||||
  export WORKON_HOME="${WORKON_HOME:-$HOME/.virtualenvs}"
 | 
			
		||||
  export WORKON_HOME="$HOME/.virtualenvs"
 | 
			
		||||
 | 
			
		||||
  # Disable the virtualenv prompt.
 | 
			
		||||
  VIRTUAL_ENV_DISABLE_PROMPT=1
 | 
			
		||||
 
 | 
			
		||||
@@ -16,10 +16,14 @@ 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 --acls --xattrs --fileflags --protect-decmpfs --force-change"
 | 
			
		||||
  _rsync_cmd="${_rsync_cmd} --crtimes --fileflags --protect-decmpfs --force-change"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
alias rsync-copy="${_rsync_cmd}"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user