mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-17 08:54:05 +00:00
chore(scripts): more work on installation scripts
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/shared.sh"
|
source "$HOME/.dotfiles/scripts/shared.sh"
|
||||||
|
|
||||||
|
msg "Starting to install rust/cargo packages"
|
||||||
|
|
||||||
! have cargo && {
|
! have cargo && {
|
||||||
msg "cargo could not be found. installing cargo with rustup.rs"
|
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
|
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"
|
source "$CARGO_HOME/env"
|
||||||
|
|
||||||
packages=(
|
packages=(
|
||||||
|
# An incremental parsing system for programming tools
|
||||||
|
"tree-sitter-cli"
|
||||||
# a subprocess caching utility
|
# a subprocess caching utility
|
||||||
"bkt"
|
"bkt"
|
||||||
# a structural diff that understands syntax
|
# a structural diff that understands syntax
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
# shellcheck source=shared.sh
|
# shellcheck source=shared.sh
|
||||||
source "$HOME/.dotfiles/scripts/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
|
! have npm && msg_err "npm could not be found." && exit 0
|
||||||
|
|
||||||
packages=(
|
packages=(
|
||||||
|
|||||||
@@ -6,13 +6,14 @@ source "$HOME/.dotfiles/scripts/shared.sh"
|
|||||||
|
|
||||||
msg "Starting to install pip packages"
|
msg "Starting to install pip packages"
|
||||||
|
|
||||||
! have pip && {
|
! have python3 && {
|
||||||
msg_err "Could not find pip, something really terrible is going on." && exit 1
|
msg_err "Could not find python3, something really terrible is going on." && exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
packages=(
|
packages=(
|
||||||
"pipx"
|
"pipx"
|
||||||
"libtmux"
|
"libtmux"
|
||||||
|
"ensurepath"
|
||||||
)
|
)
|
||||||
|
|
||||||
for pkg in "${packages[@]}"; do
|
for pkg in "${packages[@]}"; do
|
||||||
@@ -27,4 +28,4 @@ for pkg in "${packages[@]}"; do
|
|||||||
echo ""
|
echo ""
|
||||||
done
|
done
|
||||||
|
|
||||||
msg_yay "Run pip package installation"
|
msg_yay "Run pip package installations"
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
ensurepath
|
|
||||||
openapi-python-client
|
openapi-python-client
|
||||||
libtmux
|
|
||||||
|
|||||||
Reference in New Issue
Block a user