dotfiles

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

commit 87fa2a0fe0b1e202f4c9f27cd8c3b13a2dba2b00
parent 0a434c2baf22c60192f9a9a2d544720e80a89383
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed, 25 Apr 2018 23:17:13 +0200

Added function to get percent of battery remaining

Diffstat:
M.commonprofile | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/.commonprofile b/.commonprofile @@ -16,6 +16,7 @@ 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' +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 ### alias rs_notinplaylist="rm /Users/alex/Library/iTunes/.ntnny.txt"