fix: amend bashrc to check for homebrew
This commit is contained in:
parent
b9db3f192e
commit
e767407663
2 changed files with 11 additions and 7 deletions
9
.bashrc
9
.bashrc
|
@ -1,4 +1,3 @@
|
|||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)0
|
||||
# Pull the latest changes from the remote (but only once!)
|
||||
if ! [ -v REPO_INITIALISED ]; then
|
||||
git pull origin main --quiet && export REPO_INITIALISED=true
|
||||
|
@ -118,11 +117,15 @@ export PATH="$HOME/nvim/bin:$PATH"
|
|||
# Theming
|
||||
export PS1="\[\e[36m\]$(date +'%H:%M:%S')\[\e[32m\]$USER \[\e[35m\]\w \[\e[31m\]$ "
|
||||
|
||||
# Homebrew
|
||||
# Homebrew (Linuxbrew) - Check if it exists first
|
||||
if [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then
|
||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||
|
||||
# thefuck
|
||||
eval $(thefuck --alias)
|
||||
fi
|
||||
|
||||
# Path setting
|
||||
# Path Setting - Make sure $HOME/bin exists and only add it once.
|
||||
if [ -d "$HOME/bin" ] && ! echo "$PATH" | grep -q "$HOME/bin"; then
|
||||
export PATH="$HOME/bin:$PATH"
|
||||
fi
|
||||
|
|
|
@ -9,3 +9,4 @@
|
|||
autoSetupRemote = true
|
||||
[safe]
|
||||
directory = /appdata
|
||||
directory = /storage/emulated/0/Obsidian Vaults/second-brain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue