feat(homebrew): add homebrew install to bashrc

This commit is contained in:
Mohammad Rafiq 2025-02-20 05:54:32 +08:00
parent 25ca2a8709
commit 35379ed2ab

View file

@ -117,6 +117,13 @@ export PATH="$HOME/nvim/bin:$PATH"
# Theming # Theming
export PS1="\[\e[36m\]$(date +'%H:%M:%S')\[\e[32m\]$USER \[\e[35m\]\w \[\e[31m\]$ " export PS1="\[\e[36m\]$(date +'%H:%M:%S')\[\e[32m\]$USER \[\e[35m\]\w \[\e[31m\]$ "
# Check if Homebrew is installed
if ! command -v brew &> /dev/null; then
echo "Homebrew not found. Installing..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install gcc fastfetch tealdeer neovim thefuck
fi
# Homebrew (Linuxbrew) - Check if it exists first # Homebrew (Linuxbrew) - Check if it exists first
if [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then if [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"