How to automatically install my default packages after tool installation #1582
Unanswered
Pilgrim1379
asked this question in
Q&A
Replies: 2 comments 1 reply
-
For python you're probably looking for this : For node, you're probably looking for this : |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jylenhofdecat Thanks for the response. I feel however that the functionality linked to doesn't handle my particular need. I've pasted below the content only python and node scripts. Maybe that will help.
#!/bin/zsh
pip install -U pip
if [ $? -eq 0 ]; then
pip install -U wheel
pip install -U pip-autoremove
pip install -U configparser
pip install -U pipdeptree
pip install -U debugpy
pip install -U pynvim
pip install -U bpyutils
pip install -U pipupgrade
pip install -U pipx
# when using asdf, first reshim python to ensure pipx is available for subsequent commands to work
# if asdf reshim python; then
# first uninstall previous packages
if pipx uninstall-all; then
pipx install pdm
pipx install pyinstaller
pipx install sphinx
pipx install mypy
pipx install ruff
pipx install codespell
pipx install cmake-language-server
pipx install ruff-lsp
# pipx install jedi-language-server
pipx install python-lsp-server && \
pipx inject python-lsp-server python-lsp-ruff
pipx install neovim-remote
pipx install pytest
# pipx install vex
pipx install nose
pipx install pycodestyle
pipx install pyflakes
pipx install jupyterlab --include-deps && \
pipx inject jupyterlab jupyterlab-lsp && \
pipx inject jupyterlab jupyter-lsp && \
pipx inject jupyterlab jupyterlab-git && \
pipx inject jupyterlab jupyterlab_code_formatter && \
pipx inject jupyterlab jupyterlab_templates && \
pipx inject jupyterlab ipywidgets && \
pipx inject jupyterlab catppuccin-jupyterlab && \
pipx inject jupyterlab catppuccin-matplotlib
pipx install jill
pipx install xxh-xxh
pipx install asciinema
# pipx install streamlit
pipx install kaggle
else
echo -e "\npipx uninstall-all failed or didn't excute"
fi
else
echo -e "\nUpgrading pip failed"
fi
#!/bin/zsh
## Install default global package for node using pnpm
## upgrade npm
npm install -g npm
## importing helper
npm install -g import-js
## neovim
npm install -g neovim
## prettier
npm install -g prettier prettier-plugin-elm
npm install -g cliui@latest
npm install -g npm-check@latest
npm install -g npm-check-updates@latest
## Corepack and package managers
#
corepack enable
corepack prepare pnpm@latest --activate
corepack prepare yarn@stable --activate
## language servers
npm install -g typescript-language-server
npm install -g bash-language-server
npm install -g @elm-tooling/elm-language-server
npm install -g @tailwindcss/language-server
npm install -g vscode-json-languageservice
npm install -g yaml-language-server
npm install -g diagnostic-languageserver
npm install -g pyright
npm install -g emmet-ls
if command -v pnpm &> /dev/null
then
## typescript
pnpm add -g typescript
## misc
pnpm add -g spoof
pnpm add -g wscat
## Type `git open` to open the GitHub page or website for a repository.
pnpm add -g git-open
## fancy listing of recent branches
pnpm add -g git-recent
## ghost
pnpm add -g ghost-cli@latest
pnpm add -g less
pnpm add -g stylus
## formatter and linters
pnpm add -g eslint
pnpm add -g js-beautify
pnpm add -g stylelint
## live server
pnpm add -g live-server
fi
echo -e "\nIf required run 'pnpm install-completion' to get completions working or pnpm."
echo -e "Installation complete." |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After installing
node
orpython
, I have a bunch of packages that I like to install globally for each. At the moment I've got separate scripts that I execute from the command prompt to get this done. I was wondering if there's a way to sayafter installing node successfully, run this script
which will then ensure that my node installation is good to go.Like this morning I upgraded node but forgot to install my default global apps and rightfully
mise doctor
complained that the node shims were missing.Beta Was this translation helpful? Give feedback.
All reactions