dot

packages and services management
Log | Files | Refs | README

commit 522086d946e1c20c5479542144b09e2886e91708
parent f6b218f4d45d088c09f885a2ef342b31018e92df
Author: josuah <mail@josuah.net>
Date:   Fri, 11 Nov 2016 12:40:25 -0500

Merge branch 'master' of http://github.com/josuah/Config

Diffstat:
Mbin/status | 9+++++++--
Mshell/.profile | 1+
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/bin/status b/bin/status @@ -25,9 +25,14 @@ END { }' /proc/stat)" -IFS='' read -r battery < "$( +battery="$( find -L /sys/class/power_supply -maxdepth 2 -name capacity 2> /dev/null )" +if [ -f "$battery" ] +then + IFS='' read -r battery < "$battery" + battery="bat $battery%" +fi main() { @@ -43,4 +48,4 @@ main() { printf ' ' } -main "$mail" "cpu $cpu%" "bat $battery%" "$date" +main "$mail" "cpu $cpu%" "$battery" "$date" diff --git a/shell/.profile b/shell/.profile @@ -50,6 +50,7 @@ alias f='find . -type f ! -path "*/.git/*" | sed "s/^\\.\\///" | iomenu' alias d='find . -type d ! -path "*/.git/*" | sed "s/^\\.\\///" | iomenu' alias c='cd "$(d)"' alias g='grep --color=always' +alias cl='clear; printf '\n' alias myip='curl icanhazip.com' alias lines='find . -name "*.[ch]" | xargs wc -l'