From 699d10813cd26bec34a7e128c18d9198150f38e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 2 Oct 2024 11:02:17 +0200 Subject: pkgs/shellrc-user-setup: use rc files instead of profile This should fix loading over SSH. --- pkgs.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pkgs.nix') diff --git a/pkgs.nix b/pkgs.nix index a62e8b2..1f01470 100644 --- a/pkgs.nix +++ b/pkgs.nix @@ -41,12 +41,12 @@ cmdbash='eval $(shellrc-bash)' cmdzsh='eval $(shellrc-zsh)' if command -v shellrc-bash 2>/dev/null >&2 \ - && ! grep -qxF "$cmdbash" ~/.profile 2>/dev/null; then - echo "$cmdbash" >>~/.profile + && ! grep -qxF "$cmdbash" ~/.bashrc 2>/dev/null; then + echo "$cmdbash" >>~/.bashrc fi if command -v shellrc-zsh 2>/dev/null >&2 \ - && ! grep -qxF "$cmdzsh" ~/.zprofile 2>/dev/null; then - echo "$cmdzsh" >>~/.zprofile + && ! grep -qxF "$cmdzsh" ~/.zshrc 2>/dev/null; then + echo "$cmdzsh" >>~/.zshrc fi ''; }; -- cgit v1.2.3