dotfiles

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

commit 24d65ff4dd05ae57a2d629f8f47ed132704631f4
parent 8f39846fee646f4aeb37be304d5ec3f218b7a34b
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue, 26 Jun 2018 12:37:58 +0200

Added a small todo grepping function

Diffstat:
Mcommonprofile | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/commonprofile b/commonprofile @@ -21,6 +21,7 @@ cd() { builtin cd -P "$@"; ls; } # List contents 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 +todos() { if [ -z "$1" ]; then 1="."; fi; grep -rnw "$1" -e "TODO" } 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 ###