2013-08-07 20:23:13 -07:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
sudo_package_update
|
|
|
|
|
2019-04-11 13:23:36 -07:00
|
|
|
# This now installs a lot of language specific stuff from python, gradle, to go.
|
2019-04-08 15:23:56 -07:00
|
|
|
# Should consider pulling these into different recipes that are dependent on the environment
|
|
|
|
# that I wish to bootstrap. If not a dev environment, I can trim out some of this.
|
|
|
|
|
2019-11-12 17:59:41 -08:00
|
|
|
# Packages that are pretty much the same treatment or names in all systems
|
2021-07-25 18:42:34 -07:00
|
|
|
|
|
|
|
# Shells
|
|
|
|
packages="fish bash"
|
|
|
|
# Common shell utils
|
|
|
|
packages="$packages tmux htop curl wget pv jq mosh bash-completion ripgrep"
|
|
|
|
# Development tools
|
2023-02-15 08:58:28 -08:00
|
|
|
packages="$packages neovim vim tig shellcheck"
|
2019-11-12 17:59:41 -08:00
|
|
|
|
2023-03-10 12:39:57 -08:00
|
|
|
# Set py3 version for macOS
|
2024-11-26 15:02:28 -08:00
|
|
|
PY3V=312
|
2023-03-10 12:39:57 -08:00
|
|
|
|
2013-08-07 20:23:13 -07:00
|
|
|
# Manager specific packages
|
|
|
|
case "$PACKAGE_MANAGER" in
|
|
|
|
"port")
|
2021-09-07 09:03:28 -07:00
|
|
|
packages="$packages universal-ctags"
|
2023-02-15 08:58:28 -08:00
|
|
|
packages="$packages gnutar"
|
2017-10-13 11:49:21 -07:00
|
|
|
# Non-standard packages
|
2023-02-15 08:58:28 -08:00
|
|
|
packages="$packages md5sha1sum"
|
2017-10-13 11:49:21 -07:00
|
|
|
# Python packages
|
2023-12-13 09:35:28 -08:00
|
|
|
packages="$packages python$PY3V py$PY3V-ipython py$PY3V-pip py$PY3V-virtualenv py$PY3V-black"
|
2019-04-09 17:34:41 -07:00
|
|
|
# Macvim with ruby and python support
|
|
|
|
# sudo_package 'macvim +ruby +python27'
|
|
|
|
# Vim with ruby and python support
|
2023-03-10 12:39:57 -08:00
|
|
|
packages="$packages vim +python$PY3V"
|
2019-04-09 17:34:41 -07:00
|
|
|
# Newer version of git with completion
|
|
|
|
packages="$packages git +bash_completion"
|
2021-07-25 18:42:34 -07:00
|
|
|
# Neovim python plugins
|
2023-03-10 12:39:57 -08:00
|
|
|
packages="$packages py$PY3V-neovim"
|
2022-01-27 12:37:06 -08:00
|
|
|
# Docker stuff
|
|
|
|
packages="$packages colima docker docker-compose kubectl_select kubectl-1.23"
|
2013-08-07 20:23:13 -07:00
|
|
|
;;
|
|
|
|
"apt-get")
|
2021-09-07 09:03:28 -07:00
|
|
|
packages="$packages universal-ctags build-essential"
|
2021-07-25 18:42:34 -07:00
|
|
|
# Neovim python plugins
|
|
|
|
packages="$packages python3-neovim"
|
2019-04-09 17:34:41 -07:00
|
|
|
# Python packages
|
2023-12-13 09:35:28 -08:00
|
|
|
packages="$packages python3 python3-ipython python3-pip python3-six black python3-virtualenv python3-venv"
|
2021-09-07 09:03:28 -07:00
|
|
|
;;
|
|
|
|
"apk")
|
|
|
|
packages="$packages ctags py3-pynvim"
|
2013-08-07 20:23:13 -07:00
|
|
|
;;
|
|
|
|
esac
|
2021-06-08 18:31:50 -07:00
|
|
|
|
2021-09-07 09:03:28 -07:00
|
|
|
sudo_package "$packages"
|
|
|
|
|
|
|
|
if [[ "$PACKAGE_MANAGER" == "port" ]]; then
|
|
|
|
# Select defaults
|
2023-03-10 12:39:57 -08:00
|
|
|
sudo port select --set python "python$PY3V"
|
2021-09-07 09:03:28 -07:00
|
|
|
sudo port select --set python2 python27
|
2023-03-10 12:39:57 -08:00
|
|
|
sudo port select --set python3 "python$PY3V"
|
|
|
|
sudo port select --set ipython "py$PY3V-ipython"
|
2021-09-07 09:03:28 -07:00
|
|
|
sudo port select --set ipython2 py27-ipython
|
2023-03-10 12:39:57 -08:00
|
|
|
sudo port select --set ipython3 "py$PY3V-ipython"
|
|
|
|
sudo port select --set pip "pip$PY3V"
|
2021-09-07 09:03:28 -07:00
|
|
|
sudo port select --set pip2 pip27
|
2023-03-10 12:39:57 -08:00
|
|
|
sudo port select --set pip3 "pip$PY3V"
|
2021-09-07 09:03:28 -07:00
|
|
|
# Use py3 versions for utilities
|
2023-03-10 12:39:57 -08:00
|
|
|
sudo port select --set black "black$PY3V"
|
|
|
|
sudo port select --set virtualenv "virtualenv$PY3V"
|
2021-12-09 09:26:12 -08:00
|
|
|
|
2022-01-27 12:37:06 -08:00
|
|
|
# Select kubectl
|
|
|
|
sudo port select --set kubectl kubectl1.23
|
|
|
|
|
2021-12-09 09:26:12 -08:00
|
|
|
# Make uctags ctags
|
|
|
|
sudo ln -s "$(which uctags)" /usr/local/bin/ctags
|
2021-09-07 09:03:28 -07:00
|
|
|
fi
|
|
|
|
|
2022-09-28 10:27:08 -07:00
|
|
|
pip3 install --user padio release-gitter
|