diff --git a/.bashrc b/.bashrc index 8ab53d06c5a1ad5afd14107fbd5cfc9a12774063..d020d3a2170ca1c4c6ac8530b282dc856523e3d2 100644 --- a/.bashrc +++ b/.bashrc @@ -74,6 +74,7 @@ alias docker-build='docker build -t "$(basename $PWD)" ./' alias cdtemp='cd $(mktemp -d)' alias 0-day-cleanup='ssh xbmc.shore.co.il "sudo -u debian-transmission find /srv/library/Comics -name *.part -path *0-Day\ Week\ of* -delete"' alias httpbin='tox -c $HOME/.tox.ini.httpbin --' +alias update-requirements='find -name "*requirements*.txt" -exec pur --requirement {} \;' deduce-aws-region () { AWS_DEFAULT_REGION="$(curl --silent \ @@ -116,20 +117,5 @@ sync-comics () { rsync --recursive --compress --progress --exclude "*.part" "$last_month" "$this_month" "$HOME/Downloads/Comics/" } -update-requirements () { - reporoot="$(git rev-parse --show-toplevel) || (echo Failed to find Git repo. - && return 1)" - # shellcheck disable=SC2164 - cd "$reporoot" - for file in $(git ls-files "*requirements*.txt") - do - pur --requirement "$file" - git add "$file" - done - git commit -m"- Updated requirements." - # shellcheck disable=SC2164 - cd - > /dev/null -} - # shellcheck disable=SC1090 . "$HOME/Documents/Shore/bundle_certs/bundle_certs"