mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-12 01:52:31 +01:00
refactor(python): refactor ipython alias
refactor ipython alias to use module option instead of code option. This is a simpler aproach that will also give a more concise and informative error message when ipython isn't installed in the current env.
This commit is contained in:
parent
8362ae285a
commit
d563720dfa
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ function pyuserpaths() {
|
|||
alias pygrep='grep -nr --include="*.py"'
|
||||
|
||||
# Run proper IPython regarding current virtualenv (if any)
|
||||
alias ipython="python3 -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'"
|
||||
alias ipython='python3 -m IPython'
|
||||
|
||||
# Share local directory as a HTTP server
|
||||
alias pyserver="python3 -m http.server"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue