Skip to content

Commit

Permalink
Misc update + fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RustyTake-Off committed Jul 26, 2024
1 parent 0fa3a79 commit 815ee7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion wslfiles/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 6 additions & 5 deletions wslfiles/.dots/scripts/wslup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=(
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -155,7 +156,7 @@ set_dotfiles() {
write_colored_message "Invocation complete" "green"
}

# Main script logic
# Main logic
case "$1" in
-h|--help)
get_help ;;
Expand Down

0 comments on commit 815ee7c

Please sign in to comment.