aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-06-20 13:06:00 +0200
committersrdusr <trevorgray@srdusr.com>2024-06-20 13:06:00 +0200
commit660be61c662564bdb1e6f4eb0d6cfa98bef117c0 (patch)
tree6259c4813f986a6bd7a6fce801c43ee51ac5b64d
parentd3b926f1536714c6da62a87bb66a6e1b6eaf37aa (diff)
downloaddotfiles-660be61c662564bdb1e6f4eb0d6cfa98bef117c0.tar.gz
dotfiles-660be61c662564bdb1e6f4eb0d6cfa98bef117c0.zip
Testing
-rwxr-xr-xinstall.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index c65c6d9..7e0118d 100755
--- a/install.sh
+++ b/install.sh
@@ -174,8 +174,22 @@ install_zsh_plugins() {
#======================================
# Common Sources/Dependencies
#======================================
+
+# Install yq
+install_yq() {
+ echo "Installing yq..."
+ if [ "$DOWNLOAD_COMMAND" == "wget" ]; then
+ wget -O /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
+ elif [ "$DOWNLOAD_COMMAND" == "curl" ]; then
+ curl -Lo /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
+ fi
+ chmod +x /usr/local/bin/yq
+ echo "yq installed successfully."
+}
+
echo "$dotfiles_dir" >>.gitignore
echo "install.sh" >>.gitignore
+
# Dotfiles
function config {
git --git-dir="$dotfiles_dir"/ --work-tree="$HOME" "$@"
@@ -750,6 +764,7 @@ linux_specific_steps() {
submodules
change_dir_names
linux_update_system
+ install_yq
install_rust
install_nvm
install_node