diff --git a/files/Brewfile b/files/Brewfile index 9f5acde..777c1c6 100644 --- a/files/Brewfile +++ b/files/Brewfile @@ -25,6 +25,7 @@ brew "bat" brew "rsync" brew "oh-my-posh" brew "fnm" +brew "direnv" # Fonts cask "font-hack-nerd-font" diff --git a/files/fish/config.fish b/files/fish/config.fish index 2c64f24..688ee2d 100644 --- a/files/fish/config.fish +++ b/files/fish/config.fish @@ -10,7 +10,7 @@ export GOPATH="$HOME/.go" if type -q brew export GOROOT=(brew --prefix go)"/libexec" 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. 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 # Node -if type -q brew +if type -q fnm fnm env --use-on-cd | source end +if type -q direnv + direnv hook fish | source +end + # 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 diff --git a/files/zsh/.zshrc b/files/zsh/.zshrc index 63323a4..480664d 100644 --- a/files/zsh/.zshrc +++ b/files/zsh/.zshrc @@ -20,4 +20,6 @@ export PATH="$PNPM_HOME:$PATH" # Node eval "$(fnm env --use-on-cd)" +eval "$(direnv hook zsh)" + eval "$(oh-my-posh init zsh)"