feat(brew): add homebrew quirks for truenas
This commit is contained in:
parent
3f0b8e878f
commit
c6cab93f4d
3 changed files with 13 additions and 7 deletions
|
@ -1,6 +1,10 @@
|
||||||
# Add directories to PATH
|
|
||||||
export PATH="/opt/homebrew/bin:$PATH"
|
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
export PATH="$HOME/Library/Python/3.9/bin:$PATH"
|
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
export PATH="$HOME/bin:$PATH"
|
export PATH="$HOME/bin:$PATH"
|
||||||
|
if uname -r | grep -qi "truenas"; then
|
||||||
|
export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
|
||||||
|
elif [[ "$OSTYPE" == darwin* ]]; then
|
||||||
|
export PATH="/opt/homebrew/bin:$PATH"
|
||||||
|
export PATH="$HOME/Library/Python/3.9/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
4
.zshrc
4
.zshrc
|
@ -1,8 +1,4 @@
|
||||||
export PATH="$PATH:$HOME/.local/bin:$HOME/bin"
|
export PATH="$PATH:$HOME/.local/bin:$HOME/bin"
|
||||||
if uname -r | grep -qi "truenas"; then
|
|
||||||
export PATH="$HOME/bin:$HOME/bin/nvim/bin:$PATH"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ── 2. Load .env files from ~/.environment.d/ ───────────────────
|
# ── 2. Load .env files from ~/.environment.d/ ───────────────────
|
||||||
# Automatically export all variables defined while sourcing .env files
|
# Automatically export all variables defined while sourcing .env files
|
||||||
setopt allexport
|
setopt allexport
|
||||||
|
|
|
@ -30,6 +30,12 @@ install_dotfiles () {
|
||||||
|
|
||||||
if ! command -v brew &>/dev/null; then
|
if ! command -v brew &>/dev/null; then
|
||||||
echo "Homebrew not found. Installing..."
|
echo "Homebrew not found. Installing..."
|
||||||
|
|
||||||
|
if uname -r | grep -qi "truenas"; then
|
||||||
|
mkdir $HOME/linuxbrew
|
||||||
|
sudo ln -s $HOME/linuxbrew /home/linuxbrew
|
||||||
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue