- added new alias to sort directories by size

- added first try on alias autocomplete
This commit is contained in:
fabian 2022-06-05 01:54:51 +02:00
parent d212b0e527
commit b572438868

View File

@ -9,6 +9,7 @@ alias r='reset'
alias ..='cd ..' alias ..='cd ..'
alias refresh_bashrc='. ~/.bashrc' # alternatively: 'source ~/.bashrc' alias refresh_bashrc='. ~/.bashrc' # alternatively: 'source ~/.bashrc'
alias rsync_default="rsync $DEFAULT_RSYNC --checksum" 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_backup="rsync $DEFAULT_RSYNC --checksum --times --group --owner --delete"
alias rsync_move='rsync_default --remove-source-files' alias rsync_move='rsync_default --remove-source-files'
alias rsync_update="rsync $DEFAULT_RSYNC --update --times" alias rsync_update="rsync $DEFAULT_RSYNC --update --times"
@ -17,6 +18,7 @@ alias nnn='nnn -dHrR'
alias nn='n -dHrR' alias nn='n -dHrR'
alias finds='find $* 2>/dev/null' alias finds='find $* 2>/dev/null'
alias c='clear' 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'
# executes command and notifies upon failure # executes command and notifies upon failure