Skip to content

Commit

Permalink
Prioritise direnv from nixpkgs over asdf-installed version
Browse files Browse the repository at this point in the history
Fixes syntax errors when using `use flake`, see also
NixOS/nixpkgs#296936
NixOS/nix#10263
direnv/direnv#1256
  • Loading branch information
iFreilicht committed Mar 18, 2024
1 parent b152884 commit 11c3316
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .config/zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ setopt appendhistory
mkdir -p $(dirname $HISTFILE)
touch $HISTFILE

# Let direnv hook into zsh. Used especially for nix
eval "$(direnv hook zsh)"

# Enable thefuck alias
eval $(thefuck --alias)

Expand Down Expand Up @@ -94,5 +91,8 @@ export ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY=latest_available
# Install some npm packages by default with asdf nodejs
export ASDF_NPM_DEFAULT_PACKAGES_FILE=$HOME/.config/asdf-default-npm-packages

# Let direnv hook into zsh. Used especially for nix
eval "$(direnv hook zsh)"

# ZSH syntax highlighting. This should be sourced last!
source $HOME/.nix-profile/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

0 comments on commit 11c3316

Please sign in to comment.