diff options
author | Karel Kočí <cynerd@email.cz> | 2023-03-24 08:57:26 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2023-03-24 08:57:26 +0100 |
commit | a89f72fb3ed3c7103a34727911d04e891acc6040 (patch) | |
tree | 9e6f6279c05690c8bce0f079904e339bac56290c | |
parent | 4eef4d6a2daea5ae8ab7ddd18b411ef151196d96 (diff) | |
download | shellrc-a89f72fb3ed3c7103a34727911d04e891acc6040.tar.gz shellrc-a89f72fb3ed3c7103a34727911d04e891acc6040.tar.bz2 shellrc-a89f72fb3ed3c7103a34727911d04e891acc6040.zip |
pkgs/shellrc-user-setup: use profiles instead for interactive sessions
-rw-r--r-- | pkgs.nix | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 ''; }; |