1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

fix(python): add support for cli args (#12159)

This commit is contained in:
Gautam krishna R 2024-01-13 23:17:54 +05:30 committed by GitHub
parent 15479ca5ae
commit 11b0ea33d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ function pyuserpaths() {
alias pygrep='grep -nr --include="*.py"' alias pygrep='grep -nr --include="*.py"'
# Run proper IPython regarding current virtualenv (if any) # Run proper IPython regarding current virtualenv (if any)
alias ipython="python3 -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'" alias ipython='python3 -c "import IPython, sys; sys.exit(IPython.start_ipython())"'
# Share local directory as a HTTP server # Share local directory as a HTTP server
alias pyserver="python3 -m http.server" alias pyserver="python3 -m http.server"