From a89f72fb3ed3c7103a34727911d04e891acc6040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 24 Mar 2023 08:57:26 +0100 Subject: pkgs/shellrc-user-setup: use profiles instead for interactive sessions --- pkgs.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs.nix b/pkgs.nix index 81104e7..d9b1074 100644 --- a/pkgs.nix +++ b/pkgs.nix @@ -40,12 +40,12 @@ cmdbash='eval $(shellrc-bash)' cmdzsh='eval $(shellrc-zsh)' if command -v shellrc-bash 2>/dev/null >&2 \ - && ! grep -qxF "$cmdbash" ~/.bashrc 2>/dev/null; then - echo "$cmdbash" >>~/.bashrc + && ! grep -qxF "$cmdbash" ~/.profile 2>/dev/null; then + echo "$cmdbash" >>~/.profile fi if command -v shellrc-zsh 2>/dev/null >&2 \ - && ! grep -qxF "$cmdzsh" ~/.zshrc 2>/dev/null; then - echo "$cmdzsh" >>~/.zshrc + && ! grep -qxF "$cmdzsh" ~/.zprofile 2>/dev/null; then + echo "$cmdzsh" >>~/.zprofile fi ''; }; -- cgit v1.2.3