summaryrefslogtreecommitdiff
path: root/zsh/.zshenv
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/.zshenv')
-rw-r--r--[l---------]zsh/.zshenv13
1 files changed, 12 insertions, 1 deletions
diff --git a/zsh/.zshenv b/zsh/.zshenv
index 135f05c..aea57fc 120000..100644
--- a/zsh/.zshenv
+++ b/zsh/.zshenv
@@ -1 +1,12 @@
-.zsh/.zshenv \ No newline at end of file
+export EDITOR=nvim
+export VISUAL=nvim
+
+# Source guix & nix profiles
+guix_profile=$HOME/.guix-env
+nix_profile=$HOME/.nix-profile/etc/profile.d/nix.sh
+
+[[ -f $guix_profile ]] && . $guix_profile
+[[ -f $nix_profile ]] && . $nix_profile
+
+# Export PATH without repetitions
+export -U PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:$HOME/bin:$HOME/.gem/ruby/2.5.0/bin:/usr/lib/surfraw${PATH:+:}$PATH"