summaryrefslogtreecommitdiff
path: root/darwin
diff options
context:
space:
mode:
authorShubham Saini <ssaini@fispan.com>2023-09-29 22:01:22 +0000
committerShubham Saini <ssaini@fispan.com>2023-09-29 22:01:22 +0000
commit1a1e7a13b015932119770e4a0e550de0dc83268b (patch)
treed07dd5a08ed6ad2b926010cc660eaf869a198f5d /darwin
parentde0f3bb1e9f65de53373a1ab0a773ad4a9bb9bcb (diff)
zsh: moved exports system-level
Diffstat (limited to 'darwin')
-rw-r--r--darwin/home.nix14
1 files changed, 7 insertions, 7 deletions
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 @@
43 }; 43 };
44 }; 44 };
45 45
46 home.sessionVariables = {
47 PATH = "$PATH:$HOME/.bin";
48 VISUAL = "nvim";
49 MANPAGER = "nvim +Man!";
50 };
51
46 programs.home-manager.enable = true; 52 programs.home-manager.enable = true;
47 programs.zsh = { 53 programs.zsh = {
48 enable = true; 54 enable = true;
49 enableCompletion = true; 55 enableCompletion = true;
50 initExtra = ''
51 export PATH="$PATH:$HOME/.bin";
52 export VISUAL="nvim"
53 export EDITOR="$VISUAL"
54 export MANPAGER="nvim +Man!"
55 '';
56 shellAliases = { 56 shellAliases = {
57 ll = "ls -l"; 57 ll = "ls -l";
58 v = "nvim"; 58 v = "nvim";
@@ -106,7 +106,7 @@
106 open = '' 106 open = ''
107 %{{ 107 %{{
108 case $(file --mime-type -Lb $f) in 108 case $(file --mime-type -Lb $f) in
109 text/*) lf -remote "send $id \$$EDITOR \$fx";; 109 text/*) lf -remote "send $id \$$VISUAL \$fx";;
110 *) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;; 110 *) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;;
111 esac 111 esac
112 }} 112 }}