diff options
Diffstat (limited to '.local/bin/development/pyh')
-rwxr-xr-x | .local/bin/development/pyh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/development/pyh b/.local/bin/development/pyh new file mode 100755 index 0000000..fdd524a --- /dev/null +++ b/.local/bin/development/pyh @@ -0,0 +1,12 @@ +#!/bin/sh + +# python-help: get help for keywords in python + +[ -x "${XDG_DATA_HOME:-$HOME/.local/share}/virtualenvs/main/bin/python" ] && + alias python="${XDG_DATA_HOME:-$HOME/.local/share}/virtualenvs/main/bin/python" + +if [ "$#" -gt 0 ]; then + python -c "help('$*')" +else + python -c "help()" +fi |