This commit is contained in:
Niccolo Borgioli 2023-03-09 11:37:34 +01:00
parent 5f6315000a
commit 21b8cf7edd
No known key found for this signature in database
GPG Key ID: D93C615F75EE4F0B
3 changed files with 12 additions and 3 deletions

View File

@ -25,6 +25,7 @@ brew "bat"
brew "rsync" brew "rsync"
brew "oh-my-posh" brew "oh-my-posh"
brew "fnm" brew "fnm"
brew "direnv"
# Fonts # Fonts
cask "font-hack-nerd-font" cask "font-hack-nerd-font"

View File

@ -10,7 +10,7 @@ export GOPATH="$HOME/.go"
if type -q brew if type -q brew
export GOROOT=(brew --prefix go)"/libexec" export GOROOT=(brew --prefix go)"/libexec"
end end
export PATH="$PATH:$GOPATH/bin:$GOROOT/bin:$HOME/.cargo/bin" export PATH="$PATH:$GOPATH/bin:$GOROOT/bin"
# The next line updates PATH for the Google Cloud SDK. # The next line updates PATH for the Google Cloud SDK.
if [ -f '$HOME/Desktop/google-cloud-sdk/path.fish.inc' ]; . '$HOME/Desktop/google-cloud-sdk/path.fish.inc'; end if [ -f '$HOME/Desktop/google-cloud-sdk/path.fish.inc' ]; . '$HOME/Desktop/google-cloud-sdk/path.fish.inc'; end
@ -25,9 +25,15 @@ set -gx PATH "$PNPM_HOME" $PATH
# pnpm end # pnpm end
# Node # Node
if type -q brew if type -q fnm
fnm env --use-on-cd | source fnm env --use-on-cd | source
end end
if type -q direnv
direnv hook fish | source
end
# Theme # Theme
oh-my-posh init fish --config ~/.config/omp/main.omp.yaml | source if type -q oh-my-posh
oh-my-posh init fish --config ~/.config/omp/main.omp.yaml | source
end

View File

@ -20,4 +20,6 @@ export PATH="$PNPM_HOME:$PATH"
# Node # Node
eval "$(fnm env --use-on-cd)" eval "$(fnm env --use-on-cd)"
eval "$(direnv hook zsh)"
eval "$(oh-my-posh init zsh)" eval "$(oh-my-posh init zsh)"