1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-15 08:01:43 +00:00

[#23] Prevent errors when completion is disabled

This commit is contained in:
Sorin Ionescu
2012-04-03 20:14:08 -04:00
parent d5a94dda74
commit e2859daba4
4 changed files with 113 additions and 113 deletions

View File

@ -15,13 +15,13 @@ if [[ "$OSTYPE" == darwin* ]] && grep -q 'file-flags' <(rsync --help 2>&1); then
fi
alias rsync-copy="${rsync_cmd}"
compdef _rsync rsync-copy=rsync
compdef _rsync rsync-copy=rsync 2> /dev/null
alias rsync-move="${rsync_cmd} --remove-source-files"
compdef _rsync rsync-move=rsync
compdef _rsync rsync-move=rsync 2> /dev/null
alias rsync-update="${rsync_cmd} --update"
compdef _rsync rsync-upate=rsync
compdef _rsync rsync-upate=rsync 2> /dev/null
alias rsync-synchronize="${rsync_cmd} --update --delete"
compdef _rsync rsync-synchronize=rsync
compdef _rsync rsync-synchronize=rsync 2> /dev/null
unset rsync_cmd