mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
chore(scripts): more work on installation scripts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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=(
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
ensurepath
|
||||
openapi-python-client
|
||||
libtmux
|
||||
|
||||
Reference in New Issue
Block a user