chore(zsh.aliases): brew -> mbrew

Allow user to use their own brew
This commit is contained in:
Ahmad Ansori Palembani 2023-07-23 09:55:08 +07:00
parent b2a731e341
commit 62df30426c
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 7 additions and 1 deletions

View file

@ -17,9 +17,15 @@ else
export ANDROID_AVD_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/android/.android/avd"
fi
# -- Python
if [[ "$OSTYPE" == "darwin"* ]]; then
export PYTHONNOUSERSITE=1
fi
# -- Path
if [[ "$OSTYPE" == "darwin"* ]]; then
LOCAL_PATH=$(du "$HOME/.local/bin/" | cut -f2 > /tmp/path && paste -sd ':' /tmp/path)
LOCAL_PATH="$HOME/Library/Python/3.10/bin:$LOCAL_PATH"
elif [[ "$OSTYPE" == "linux-gnu" ]]; then
LOCAL_PATH="$(du "$HOME/.local/bin/" | cut -f2 | paste -sd ':')${PATH:+:${PATH}}"
fi

View file

@ -3,7 +3,7 @@
if [[ "$OSTYPE" == "darwin"* ]]; then
# i need sudo to launch emulator
alias pixelemu="sudo $HOME/Library/Android/sdk/emulator/emulator @Pixel_2_API_28"
alias brew="sudo -H -u maintenance brew"
alias mbrew="sudo -H -u maintenance -g staff brew"
fi
alias punten='doas'