Update setup_dev_env
This commit is contained in:
parent
06ea644d39
commit
deb9f721fd
1 changed files with 5 additions and 5 deletions
|
|
@ -36,6 +36,11 @@ if [ "$(uname)" == "Darwin" ]; then
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
PACKAGE_MANAGER="brew"
|
PACKAGE_MANAGER="brew"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Enable Brew auto-update if the flag is set
|
||||||
|
if [ "$ENABLE_AUTO_UPDATE" == true ]; then
|
||||||
|
brew autoupdate --start --upgrade --cleanup
|
||||||
|
fi
|
||||||
elif [ "$(uname)" == "Linux" ]; then
|
elif [ "$(uname)" == "Linux" ]; then
|
||||||
# Check if on Linux and use the appropriate package manager
|
# Check if on Linux and use the appropriate package manager
|
||||||
if command_exists apt-get; then
|
if command_exists apt-get; then
|
||||||
|
|
@ -138,11 +143,6 @@ tmux source ~/.tmux.conf
|
||||||
# Inform the user and wait for input
|
# Inform the user and wait for input
|
||||||
echo "Zsh, Tmux, Neovim, Go, and development tools configurations applied."
|
echo "Zsh, Tmux, Neovim, Go, and development tools configurations applied."
|
||||||
|
|
||||||
# Enable Brew auto-update if the flag is set
|
|
||||||
if [ "$ENABLE_AUTO_UPDATE" == true ]; then
|
|
||||||
brew autoupdate --start --upgrade --cleanup
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Enable notifications if the flag is set
|
# Enable notifications if the flag is set
|
||||||
if [ "$ENABLE_NOTIFICATION" == true ]; then
|
if [ "$ENABLE_NOTIFICATION" == true ]; then
|
||||||
echo "Press Enter to start Zsh and Tmux."
|
echo "Press Enter to start Zsh and Tmux."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue