Browse Source

feat: transfer_cp + transfer_mv

master
pvincent 3 years ago
parent
commit
0724bff123
  1. 3
      bash.bashrc
  2. 5
      tools/transfer_mv

3
bash.bashrc

@ -172,6 +172,7 @@ __vte_urlencode() (
done
)
PROMPT_COMMAND='__prompt_command' # Func to gen PS1 after CMDs
@ -192,6 +193,8 @@ alias grep='grep $COLOR_OPTIONS'
alias fgrep='fgrep $COLOR_OPTIONS'
alias egrep='egrep $COLOR_OPTIONS'
alias transfer_cp='rsync -a --info=progress2 --no-inc-recursive'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.

5
tools/transfer_mv

@ -0,0 +1,5 @@
#!/bin/bash
[ ! -d "$1" ] && echo "SOURCE FOLDER $1 not reachable!" && exit -1
rsync -a --info=progress2 --remove-source-files "$1" "$2" && find "$1" -type d -empty -delete
Loading…
Cancel
Save