diff options
author | Karel Kočí <cynerd@email.cz> | 2022-04-09 18:12:16 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-04-09 18:12:16 +0200 |
commit | 481a5f5508ac42d07683d2e03421e443be92ff23 (patch) | |
tree | 8faa21404549055477e526329cb8e522d6573253 | |
parent | 10b206132e4a48ed2eee6d0aa6e49006abe953d7 (diff) | |
download | shellrc-481a5f5508ac42d07683d2e03421e443be92ff23.tar.gz shellrc-481a5f5508ac42d07683d2e03421e443be92ff23.tar.bz2 shellrc-481a5f5508ac42d07683d2e03421e443be92ff23.zip |
flake.nix: use interactiveShellInit instead of loginShellInit
-rw-r--r-- | flake.nix | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |