dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 59bb74de99cba8316d8e164ec45678760d251d4e
parent d6c1b2ca52c99fa2947bee61a11fefe11c1f9d0b
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed, 16 May 2018 22:54:36 +0200

Added a command to remove empty dirs and subdirs

Diffstat:
M.commonprofile | 25+++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/.commonprofile b/.commonprofile @@ -2,20 +2,21 @@ alias c="clear" alias fucking="sudo" alias virc="vim ~/.vimrc" -alias cp='cp -iv' # Preferred 'cp' implementation -alias mv='mv -iv' # Preferred 'mv' implementation -alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation -alias l="ls -lah" # Preferred 'ls' implementation -alias ll="ls -FGlAhpO@" # Preferred 'ls' implementation -alias less='less -RXc' # Preferred 'less' implementation -alias rsync='rsync -avhW --progress' # Preferred 'rsync' implementation -alias top='sudo htop' # Top should launch htop with sudo +alias cp='cp -iv' # Preferred 'cp' implementation +alias mv='mv -iv' # Preferred 'mv' implementation +alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation +alias l="ls -lah" # Preferred 'ls' implementation +alias ll="ls -FGlAhpO@" # Preferred 'ls' implementation +alias less='less -RXc' # Preferred 'less' implementation +alias rsync='rsync -avhW --progress' # Preferred 'rsync' implementation +alias rrsync='rsync -avhW --progress --remove-source-files' # Rsync, but remove source +alias top='sudo htop' # Top should launch htop with sudo alias g='git' alias r='ranger' -cd() { builtin cd -P "$@"; ls; } # List contents after cding -mkcd() { mkdir -p -- "$1" && cd -P -- "$1" } # Make dir and cd at the same time -procinfo() { ps -aux | grep $1 } # Get info about a process (by name) -alias rrsync='rsync -avhW --progress --remove-source-files' +cd() { builtin cd -P "$@"; ls; } # List contents after cding +mkcd() { mkdir -p -- "$1" && cd -P -- "$1" } # Make dir and cd at the same time +procinfo() { ps -aux | grep $1 } # Get info about a process (by name) +rmempty() { find ${1-.} -type d -empty -depth -delete } # Remove empty directories batterypct() { ioreg -l | awk '$3~/Capacity/{c[$3]=$5}END{OFMT="%.2f%%";max=c["\"MaxCapacity\""];print(max>0?100*c["\"CurrentCapacity\""]/max:"?")}' | sed 's/\..*//' } ### DOUG SCRIPTS TRIAL RESET ###