diff --git a/bash.bashrc b/bash.bashrc index ad46d4a..ed6b877 100644 --- a/bash.bashrc +++ b/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. diff --git a/tools/transfer_mv b/tools/transfer_mv new file mode 100755 index 0000000..9e2f43c --- /dev/null +++ b/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 +