From 1a1e7a13b015932119770e4a0e550de0dc83268b Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Fri, 29 Sep 2023 15:01:22 -0700 Subject: zsh: moved exports system-level --- darwin/home.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'darwin/home.nix') diff --git a/darwin/home.nix b/darwin/home.nix index 3013495..ffed46f 100644 --- a/darwin/home.nix +++ b/darwin/home.nix @@ -43,16 +43,16 @@ }; }; + home.sessionVariables = { + PATH = "$PATH:$HOME/.bin"; + VISUAL = "nvim"; + MANPAGER = "nvim +Man!"; + }; + programs.home-manager.enable = true; programs.zsh = { enable = true; enableCompletion = true; - initExtra = '' - export PATH="$PATH:$HOME/.bin"; - export VISUAL="nvim" - export EDITOR="$VISUAL" - export MANPAGER="nvim +Man!" - ''; shellAliases = { ll = "ls -l"; v = "nvim"; @@ -106,7 +106,7 @@ open = '' %{{ case $(file --mime-type -Lb $f) in - text/*) lf -remote "send $id \$$EDITOR \$fx";; + text/*) lf -remote "send $id \$$VISUAL \$fx";; *) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;; esac }} -- cgit v1.2.3