Set up Python develop environments
- use `pyenv` to manage the various develop environments
+ install several Python binaries
+ each environment receives its own `poetry` install
- add two virtual environments:
+ "interactive" => default environment with no library,
which receives accidental `pip install`s
+ "utils" => hosts various globally available tools/apps
(e.g., `mackup`)
- add installation and update scripts
This commit is contained in:
parent
5c3a914658
commit
dcdb32585a
8 changed files with 240 additions and 2 deletions
18
.zshrc
18
.zshrc
|
|
@ -102,7 +102,10 @@ zplug "plugins/command-not-found", from:oh-my-zsh
|
|||
zplug "plugins/dotenv", from:oh-my-zsh
|
||||
zplug "plugins/dirhistory", from:oh-my-zsh
|
||||
zplug "plugins/git-escape-magic", from:oh-my-zsh
|
||||
zplug "plugins/invoke", from:oh-my-zsh # completions for `invoke`
|
||||
zplug "plugins/jsontools", from:oh-my-zsh
|
||||
zplug "plugins/pip", from:oh-my-zsh # completions for `pip`
|
||||
zplug "plugins/poetry", from:oh-my-zsh # completions for `poetry`
|
||||
zplug "plugins/z", from:oh-my-zsh
|
||||
|
||||
zplug "romkatv/powerlevel10k", as:theme, depth:1
|
||||
|
|
@ -141,6 +144,21 @@ zstyle ':completion:*:warnings' format 'No matches for: %d'
|
|||
zstyle ':completion:*' group-name ''
|
||||
|
||||
|
||||
# Enable completions for various tools
|
||||
|
||||
# invoke -> see plugins above
|
||||
# command_exists invoke && eval "$(invoke --print-completion-script=zsh)"
|
||||
|
||||
command_exists nox && eval "$(register-python-argcomplete nox)"
|
||||
|
||||
# pip -> see plugins above
|
||||
# command_exists pip && eval "$(pip completion --zsh)"
|
||||
|
||||
command_exists pipx && eval "$(register-python-argcomplete pipx)"
|
||||
|
||||
# poetry -> see plugins above
|
||||
|
||||
|
||||
|
||||
# ============
|
||||
# Key Bindings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue