chore(scripts): more work on installation scripts

This commit is contained in:
2023-09-28 18:59:21 +03:00
parent 68ec53e29b
commit 594ee0d03c
4 changed files with 10 additions and 5 deletions

View File

@@ -4,6 +4,8 @@
# shellcheck source=shared.sh
source "$HOME/.dotfiles/scripts/shared.sh"
msg "Starting to install rust/cargo packages"
! have cargo && {
msg "cargo could not be found. installing cargo with rustup.rs"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path
@@ -12,6 +14,8 @@ source "$HOME/.dotfiles/scripts/shared.sh"
source "$CARGO_HOME/env"
packages=(
# An incremental parsing system for programming tools
"tree-sitter-cli"
# a subprocess caching utility
"bkt"
# a structural diff that understands syntax

View File

@@ -4,6 +4,8 @@
# shellcheck source=shared.sh
source "$HOME/.dotfiles/scripts/shared.sh"
msg "Starting to install npm packages"
! have npm && msg_err "npm could not be found." && exit 0
packages=(

View File

@@ -6,13 +6,14 @@ source "$HOME/.dotfiles/scripts/shared.sh"
msg "Starting to install pip packages"
! have pip && {
msg_err "Could not find pip, something really terrible is going on." && exit 1
! have python3 && {
msg_err "Could not find python3, something really terrible is going on." && exit 1
}
packages=(
"pipx"
"libtmux"
"ensurepath"
)
for pkg in "${packages[@]}"; do
@@ -27,4 +28,4 @@ for pkg in "${packages[@]}"; do
echo ""
done
msg_yay "Run pip package installation"
msg_yay "Run pip package installations"

View File

@@ -1,3 +1 @@
ensurepath
openapi-python-client
libtmux