aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-04-09 18:12:16 +0200
committerKarel Kočí <cynerd@email.cz>2022-04-09 18:12:16 +0200
commit481a5f5508ac42d07683d2e03421e443be92ff23 (patch)
tree8faa21404549055477e526329cb8e522d6573253 /flake.nix
parent10b206132e4a48ed2eee6d0aa6e49006abe953d7 (diff)
downloadshellrc-481a5f5508ac42d07683d2e03421e443be92ff23.tar.gz
shellrc-481a5f5508ac42d07683d2e03421e443be92ff23.tar.bz2
shellrc-481a5f5508ac42d07683d2e03421e443be92ff23.zip
flake.nix: use interactiveShellInit instead of loginShellInit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index df7f45c..f0d7946 100644
--- a/flake.nix
+++ b/flake.nix
@@ -37,7 +37,7 @@
};
config = mkIf config.programs.shellrc.enable {
- environment.loginShellInit = ''
+ environment.interactiveShellInit = ''
for sh in ${./shellrc.d}/*; do
[ -r "$sh" ] && . "$sh"
done
@@ -47,17 +47,19 @@
done
'';
- programs.bash.loginShellInit = ''
+ programs.bash.interactiveShellInit = ''
for sh in ${./bashrc.d}/*; do
[ -r "$sh" ] && . "$sh"
done
'';
+ programs.bash.promptInit = ""; # Disable default prompt as we have our own
- programs.zsh.loginShellInit = mkIf config.programs.zsh.enable ''
+ programs.zsh.interactiveShellInit = mkIf config.programs.zsh.enable ''
for sh in ${./zshrc.d}/*; do
[ -r "$sh" ] && . "$sh"
done
'';
+ programs.zsh.promptInit = ""; # Disable default prompt as we have our own
environment.systemPackages = [
zsh-completion