From 815ee7c1223ac0418f0122a33c5eb8115abf7977 Mon Sep 17 00:00:00 2001 From: RustyTake-Off <109174317+RustyTake-Off@users.noreply.github.com> Date: Fri, 26 Jul 2024 14:36:13 +0200 Subject: [PATCH] Misc update + fix --- wslfiles/.bashrc | 2 +- wslfiles/.dots/scripts/wslup.sh | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/wslfiles/.bashrc b/wslfiles/.bashrc index e5c9e22..3b4ee79 100644 --- a/wslfiles/.bashrc +++ b/wslfiles/.bashrc @@ -39,4 +39,4 @@ for file in $bash_config_files; do source "$HOME/.dots/scripts/$file.sh" fi done -unset bash_config_files +unset bash_config_files file diff --git a/wslfiles/.dots/scripts/wslup.sh b/wslfiles/.dots/scripts/wslup.sh index 2940678..b7c98ac 100755 --- a/wslfiles/.dots/scripts/wslup.sh +++ b/wslfiles/.dots/scripts/wslup.sh @@ -4,10 +4,12 @@ # GitHub - https://github.com/RustyTake-Off # GitHub Repo - https://github.com/RustyTake-Off/dotfiles # Author - RustyTake-Off -# Version - 0.1.12 +# Version - 0.1.13 + +set -eu # Configuration variables -readonly DOTFILES_SCRIPT_PATH="$HOME/.dots/scripts/set_dotfiles.sh" +declare DOTFILES_SCRIPT_PATH="$HOME/.dots/scripts/set_dotfiles.sh" # ANSI escape sequences for different colors declare -A COLORS=( @@ -95,14 +97,13 @@ get_brew() { if [ ! -x "$(command -v brew)" ]; then write_colored_message "Installing Homebrew..." "yellow" - bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # Check if Homebrew is installed and set up the environment if [ -x "$(command -v /home/linuxbrew/.linuxbrew/bin/brew)" ]; then eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" - command brew completions link + write_colored_message "Homebrew installed and configured" "green" fi else @@ -155,7 +156,7 @@ set_dotfiles() { write_colored_message "Invocation complete" "green" } -# Main script logic +# Main logic case "$1" in -h|--help) get_help ;;