dotfiles

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

commit 669f38a3b0492a139d7bdd889c3877759fcee45c
parent cc36c7d098239d4d21138e6c985ac14637d58b0b
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Fri,  2 Nov 2018 15:39:50 +0100

Small shell profile modifications

Diffstat:
Ashell/bash_profile | 1+
Mshell/commonprofile | 6+++---
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/shell/bash_profile b/shell/bash_profile @@ -0,0 +1 @@ +source $HOME/.commonprofile diff --git a/shell/commonprofile b/shell/commonprofile @@ -135,7 +135,7 @@ todos() { if [ -z "$1" ]; then 1="."; fi; grep -rnw "$1" -e "TODO"; } # Fi find_in_files() { grep -rnw "$1" -e "$2"; } # Search for text in files # Pip3 upgrade packages -pip3-upgrade() { pip3 list --outdated | cut -d ' ' -f1 | xargs -n1 pip3 install -U } +pip3-upgrade() { pip3 list --outdated | cut -d ' ' -f1 | xargs -n1 pip3 install -U; } # Get current battery percentage batterypct() { ioreg -l | awk '$3~/Capacity/{c[$3]=$5}END{OFMT="%.2f%%";max=c["\"MaxCapacity\""];print(max>0?100*c["\"CurrentCapacity\""]/max:"?")}' | sed 's/\..*//'; } @@ -143,8 +143,8 @@ batterypct() { ioreg -l | awk '$3~/Capacity/{c[$3]=$5}END{OFMT="%.2f%%";max=c["\ # create commands to override pip restriction. # use `gpip` or `gpip3` to force installation of # a package in the global python environment -gpip(){ PIP_REQUIRE_VIRTUALENV="" pip "$@" } -gpip3(){ PIP_REQUIRE_VIRTUALENV="" pip3 "$@" } +gpip(){ PIP_REQUIRE_VIRTUALENV="" pip "$@"; } +gpip3(){ PIP_REQUIRE_VIRTUALENV="" pip3 "$@"; } # }}}