Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
ddf673b3
Unverified
Commit
ddf673b3
authored
Nov 24, 2023
by
MikuHatsune39
Committed by
GitHub
Nov 24, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(python): set `py` alias if `py` is not installed (#12059)
Co-authored-by:
Carlo Sala
<
carlosalag@protonmail.com
>
parent
76a1dfcf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
README.md
plugins/python/README.md
+1
-1
python.plugin.zsh
plugins/python/python.plugin.zsh
+2
-2
No files found.
plugins/python/README.md
View file @
ddf673b3
...
@@ -12,7 +12,7 @@ plugins=(... python)
...
@@ -12,7 +12,7 @@ plugins=(... python)
| Command | Description |
| Command | Description |
| ---------------- | -------------------------------------------------------------------------------------- |
| ---------------- | -------------------------------------------------------------------------------------- |
|
`py`
| Runs
`python3`
|
|
`py`
| Runs
`python3`
. Only set if
`py`
is not installed.
|
|
`ipython`
| Runs the appropriate
`ipython`
version according to the activated virtualenv |
|
`ipython`
| Runs the appropriate
`ipython`
version according to the activated virtualenv |
|
`pyfind`
| Finds .py files recursively in the current directory |
|
`pyfind`
| Finds .py files recursively in the current directory |
|
`pyclean [dirs]`
| Deletes byte-code and cache files from a list of directories or the current one |
|
`pyclean [dirs]`
| Deletes byte-code and cache files from a list of directories or the current one |
...
...
plugins/python/python.plugin.zsh
View file @
ddf673b3
#
python comman
d
#
set python command if 'py' not installe
d
alias
py
=
'python3'
builtin
which py
>
/dev/null
||
alias
py
=
'python3'
# Find python file
# Find python file
alias
pyfind
=
'find . -name "*.py"'
alias
pyfind
=
'find . -name "*.py"'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment