summaryrefslogtreecommitdiff
path: root/plugins/python/python.plugin.zsh
diff options
context:
space:
mode:
authorCelestino Gomes <tinorj@gmail.com>2021-09-24 17:37:09 -0300
committerMarc Cornellà <hello@mcornella.com>2021-12-29 15:44:25 +0100
commit3e2676f7dcafbec3c8e481e6ebfb2454bd3c232c (patch)
tree9662474a8186e602409f14a3ff227cb063bde0e5 /plugins/python/python.plugin.zsh
parent4ef188cebf054896b47aa91181dacc2c674b5063 (diff)
downloadzsh-3e2676f7dcafbec3c8e481e6ebfb2454bd3c232c.tar.gz
zsh-3e2676f7dcafbec3c8e481e6ebfb2454bd3c232c.tar.bz2
zsh-3e2676f7dcafbec3c8e481e6ebfb2454bd3c232c.zip
feat(python): add `pyserver` alias to start an HTTP server (#10217)
Closes #10217
Diffstat (limited to 'plugins/python/python.plugin.zsh')
-rw-r--r--plugins/python/python.plugin.zsh3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/python/python.plugin.zsh b/plugins/python/python.plugin.zsh
index 276eb6f91..896fae3ca 100644
--- a/plugins/python/python.plugin.zsh
+++ b/plugins/python/python.plugin.zsh
@@ -48,3 +48,6 @@ alias pygrep='grep -nr --include="*.py"'
# Run proper IPython regarding current virtualenv (if any)
alias ipython="python -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'"
+
+# Share local directory as a HTTP server
+alias pyserver="python -m http.server"