Skip to content

Instantly share code, notes, and snippets.

@setomits
Created October 11, 2018 06:54
Show Gist options
  • Save setomits/599c21863c3d59f234dfb2f8c221b5b0 to your computer and use it in GitHub Desktop.
Save setomits/599c21863c3d59f234dfb2f8c221b5b0 to your computer and use it in GitHub Desktop.
alias unittest="python -m unittest"
function rmpyc
find . -type f -name "*.pyc" -delete
find . -type d -name "__pycache__" -delete
find . -type d -name "*.egg-info" -delete
end
function pipupgrade
set packages (pip list --disable-pip-version-check --format columns\
--outdated | cut -d " " -f 1)[3..-1]
for package in $packages
pip install --disable-pip-version-check --upgrade $package
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment