aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason2024-05-21 18:56:55 -0600
committerjason2024-05-21 18:56:55 -0600
commit8bf65f5273fecc0fa07bd42111f4fb83c450aac2 (patch)
treecbc5a01fc39c790661b8611ad526c5503289e4a8
parent089a4951046fab67aa23c61f4e0390600ffcfe9c (diff)
downloaddotfiles-8bf65f5273fecc0fa07bd42111f4fb83c450aac2.tar.gz
dotfiles-8bf65f5273fecc0fa07bd42111f4fb83c450aac2.zip
add install-pylsp helper function
-rw-r--r--bash/.bashrc16
1 files changed, 15 insertions, 1 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index 76cdb2d..8ad71a3 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -167,7 +167,21 @@ fi
167if [[ -x $HOME/.pyenv/bin ]]; then 167if [[ -x $HOME/.pyenv/bin ]]; then
168 eval "$($HOME/.pyenv/bin/pyenv init -)" 168 eval "$($HOME/.pyenv/bin/pyenv init -)"
169 export PATH=$HOME/.pyenv/bin:$PATH 169 export PATH=$HOME/.pyenv/bin:$PATH
170fi 170fi
171
172function install-pylsp() {
173 # a little shortcut for installing the helpers i use for python
174 # IDE features
175 [ ! -z "${VIRTUAL_ENV}" ] \
176 && pip install -U --upgrade-strategy eager \
177 black \
178 flake8 \
179 flake8-docstrings \
180 flake8-import-order \
181 mypy \
182 jedi-language-server \
183 || echo 'Not in a venv.'
184}
171 185
172__workon() { 186__workon() {
173 source ~/.virtualenvs/$1/bin/activate 187 source ~/.virtualenvs/$1/bin/activate