mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 18:39:26 +00:00
Compare commits
2 Commits
pull/599-t
...
stashes
Author | SHA1 | Date | |
---|---|---|---|
b948e3630b | |||
55e4db9429 |
@ -6,9 +6,13 @@
|
|||||||
# Zeh Rizzatti <zehrizzatti@gmail.com>
|
# 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
|
if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
|
||||||
source "$HOME/.nvm/nvm.sh"
|
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
|
fi
|
||||||
|
|
||||||
# Return if requirements are not found.
|
# Return if requirements are not found.
|
||||||
|
@ -16,10 +16,14 @@ fi
|
|||||||
|
|
||||||
_rsync_cmd='rsync --verbose --progress --human-readable --compress --archive --hard-links --one-file-system'
|
_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
|
# Mac OS X and HFS+ Enhancements
|
||||||
# http://help.bombich.com/kb/overview/credits#opensource
|
# http://help.bombich.com/kb/overview/credits#opensource
|
||||||
if [[ "$OSTYPE" == darwin* ]] && grep -q 'file-flags' <(rsync --help 2>&1); then
|
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
|
fi
|
||||||
|
|
||||||
alias rsync-copy="${_rsync_cmd}"
|
alias rsync-copy="${_rsync_cmd}"
|
||||||
|
Reference in New Issue
Block a user