rsync
This commit is contained in:
26
.bashrc.kuba
26
.bashrc.kuba
@@ -69,6 +69,32 @@ npz_preview() {
|
|||||||
python -ic "$npz_py_str" "$1"
|
python -ic "$npz_py_str" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rsync_wrap() {
|
||||||
|
cmd="rsync -a -R -r --copy-links --exclude .git --exclude __pycache__ --progress"
|
||||||
|
if [ $# == 0 ]; then
|
||||||
|
echo "Usage rsync_wrap [...]
|
||||||
|
|
||||||
|
Useful for synchronizing repositories
|
||||||
|
|
||||||
|
Calls $cmd [...]"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
$cmd $@
|
||||||
|
}
|
||||||
|
|
||||||
|
rsync_wrap_huge() {
|
||||||
|
cmd="rsync -a -R -r --copy-links --size-only --exclude .git --exclude __pycache__ --progress"
|
||||||
|
if [ $# == 0 ]; then
|
||||||
|
echo "Usage rsync_wrap_huge [...]
|
||||||
|
|
||||||
|
Useful for synchronizing repositories. Does not do checksum
|
||||||
|
|
||||||
|
Calls $cmd [...]"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
$cmd $@
|
||||||
|
}
|
||||||
|
|
||||||
# Source git prompt
|
# Source git prompt
|
||||||
source_existing ~/scripts/git-prompt.sh
|
source_existing ~/scripts/git-prompt.sh
|
||||||
source_existing ~/.bash_prompt.kuba
|
source_existing ~/.bash_prompt.kuba
|
||||||
|
|||||||
Reference in New Issue
Block a user