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

14 commits

Author SHA1 Message Date
Roc
02ce2c4a2f
add python alias (#7736) 2021-06-11 18:50:29 -07:00
Mohammad
dd1df90252
python: add line-number to pygrep (#8867) 2020-05-23 22:33:09 +02:00
0b10
72707d92b1
python: add pyuserpaths function (#7758)
Summary
    Make it get a list of installed interpreters, and add the
    relevant local (HOME) site-packages directory to PYTHONPATH.

    Reason
    To easily add all relevant paths, initially, and between upgrades.

Add check for PYTHONUSERBASE

    Summary
    Check for a non-standard install directory, use it if one
    exists, otherwise use ~/.local.

    Reason
    Allow users to specify their own installation directory, without
    affecting functionality.
2020-03-02 13:38:44 +01:00
Petr Bělohlávek
6b54302b90 python: add alias to run the proper IPython based on virtualenv
Current state: a user invokes `ipython` and is provided with the IPython
instance regarding the `$PATH`.

Proposed state: a user invokes `ipython` (which is a new alias in the
*python plugin*) and is provided with the proper IPython instance regarding
the currently activated virtualenv.

Example: the user's default Python is 2.7 with installed IPython 2.7. User
activates Python 3.5 virtualenv where he installs IPython 3.5. After
activating the environment, one expects `ipython` to run the version 3.5,
which does not happen by default. Instead, IPython 2.7 is used, which in
counter-intuitive and often causes problem.

Closes #5797
2020-02-27 17:17:01 +01:00
Michael
9785d24172 python: fix and extend pyclean (#7762)
Deleting `.mypy_cache` did not work, because the directories were not
empty.  They contain JSON files instead of compiled byte-code.

This extends the cleanup by also getting rid of `.pytest_cache`
directories.
2019-10-25 13:24:35 +02:00
Maciej Motyka
c5b4613bf6 python: add recurse flag to pygrep (#8217)
As described in #7053
2019-10-09 19:13:25 +02:00
Batuhan's Unmaintained Account
c7d903b77e
Remove Optional Static Type Checker's (mypy) Cache Files on pyclean
Remove Optional Static Type Checker's (mypy) Cache Files on `pyclean`
2018-09-23 12:12:27 -04:00
Robby Russell
5a32796fc5 Merge pull request #2088 from Stibbons/gsemet_push_pep_pylint_completion
Completion for python, pep8, autopep8 and pylint
2013-12-02 23:45:35 -08:00
Carlos Cardoso
c6dce05fab python3 clean updated. 2013-11-12 22:55:28 -02:00
Gaetan Semet
4543852876 Completion for python, pep8, autopep8 and pylint
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
2013-09-10 11:33:58 +02:00
dsx
c592f55af1 Added ability to specify list of directories for pyclean to override default current directory 2012-10-26 12:38:17 -04:00
dir01
60c3fa9371 Python plugin: added pygrep command, simplified pyclean 2012-03-22 04:34:19 +07:00
Diógenes
b2d5b43650 refactored pycrm command 2011-04-14 12:15:26 -03:00
Diógenes
d6c150decc adding python plugin with some aliases 2011-04-13 11:55:24 -03:00