Skip to content

Commit

Permalink
Skip snippet unless we're interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgebucaran committed Dec 29, 2020
1 parent 15026bb commit a75accc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conf.d/nvm.fish
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
status is-interactive || exit

set --query XDG_DATA_HOME \
&& set --global nvm_data $XDG_DATA_HOME/nvm \
|| set --global nvm_data ~/.local/share/nvm
Expand Down

0 comments on commit a75accc

Please sign in to comment.