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
17
.bashrc
17
.bashrc
|
@ -1,4 +1,3 @@
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)0
|
|
||||||
# Pull the latest changes from the remote (but only once!)
|
# Pull the latest changes from the remote (but only once!)
|
||||||
if ! [ -v REPO_INITIALISED ]; then
|
if ! [ -v REPO_INITIALISED ]; then
|
||||||
git pull origin main --quiet && export REPO_INITIALISED=true
|
git pull origin main --quiet && export REPO_INITIALISED=true
|
||||||
|
@ -118,11 +117,15 @@ 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\]$ "
|
||||||
|
|
||||||
# Homebrew
|
# Homebrew (Linuxbrew) - Check if it exists first
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
if [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then
|
||||||
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
|
|
||||||
# thefuck
|
# thefuck
|
||||||
eval $(thefuck --alias)
|
eval $(thefuck --alias)
|
||||||
|
fi
|
||||||
|
|
||||||
# Path setting
|
# Path Setting - Make sure $HOME/bin exists and only add it once.
|
||||||
export PATH="$HOME/bin:$PATH"
|
if [ -d "$HOME/bin" ] && ! echo "$PATH" | grep -q "$HOME/bin"; then
|
||||||
|
export PATH="$HOME/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
|
@ -9,3 +9,4 @@
|
||||||
autoSetupRemote = true
|
autoSetupRemote = true
|
||||||
[safe]
|
[safe]
|
||||||
directory = /appdata
|
directory = /appdata
|
||||||
|
directory = /storage/emulated/0/Obsidian Vaults/second-brain
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue