diff --git a/home_external/.bash_aliases b/home_external/.bash_aliases index 8a6efc1..058ffb6 100644 --- a/home_external/.bash_aliases +++ b/home_external/.bash_aliases @@ -9,6 +9,7 @@ alias r='reset' alias ..='cd ..' alias refresh_bashrc='. ~/.bashrc' # alternatively: 'source ~/.bashrc' alias rsync_default="rsync $DEFAULT_RSYNC --checksum" +# complete -F _rsync rsync_default # FIXME!!! works on oashi workstation (ubuntu) but not on manjaro ?!? alias rsync_backup="rsync $DEFAULT_RSYNC --checksum --times --group --owner --delete" alias rsync_move='rsync_default --remove-source-files' alias rsync_update="rsync $DEFAULT_RSYNC --update --times" @@ -17,6 +18,7 @@ alias nnn='nnn -dHrR' alias nn='n -dHrR' alias finds='find $* 2>/dev/null' alias c='clear' +alias sort_dirs_by_size='du --block-size=1K --human-readable --max-depth=1 | sort --human-numeric-sort --reverse' # 'du -kh --max-depth=1 | sort -hr' alias sd='sudo ' # alias, so sudo can use aliases: "If the last character of the alias value is a blank, then the next command word following the alias is also checked for alias expansion."