diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-29 22:12:48 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-29 22:12:48 +0200 |
commit | 5d3c8e21d2d79a6ed3e324b833002a9bb0317b34 (patch) | |
tree | 08e26e0a885d575c8399fb65bbef3ddc2ad233db /programs/zsh/default.nix | |
parent | a24f50c8a264fd0e42c789f4cf16a8796ab97e47 (diff) | |
download | dots-5d3c8e21d2d79a6ed3e324b833002a9bb0317b34.tar.gz dots-5d3c8e21d2d79a6ed3e324b833002a9bb0317b34.zip |
Linux config
Diffstat (limited to 'programs/zsh/default.nix')
-rw-r--r-- | programs/zsh/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/programs/zsh/default.nix b/programs/zsh/default.nix index a593fed..9b4677c 100644 --- a/programs/zsh/default.nix +++ b/programs/zsh/default.nix @@ -1,4 +1,4 @@ -pkgs: +{ pkgs, ... }: let isDarwin = builtins.currentSystem == "x86_64-darwin"; @@ -21,10 +21,12 @@ in shellAliases = import ../aliases.nix // import platformAliases; defaultKeymap = "viins"; initExtraBeforeCompInit = builtins.readFile ./precomp.zshrc; - initExtra = builtins.readFile ./postcomp.zshrc; + initExtra = builtins.readFile ./postcomp.zshrc + + '' + eval "$(${pkgs.direnv}/bin/direnv hook zsh)" + ''; sessionVariables = rec { - PROMPT="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "; NVIM_TUI_ENABLE_TRUE_COLOR = "1"; ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=3"; @@ -44,4 +46,6 @@ in # logoutExtra # localVariables }; + + home.file.".zprofile".source = ./zprofile; } |