Makes bash load .bashrc on SSH login

Signed-off-by: main <magic_rb@redalder.org>
This commit is contained in:
main 2022-11-10 22:37:55 +01:00
parent ae2b112e6e
commit c6f5283d76
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
#
# SPDX-License-Identifier: LGPL-3.0-or-later
source $HOME/.bashrc

View file

@ -35,6 +35,7 @@ in {
programs.direnv.nix-direnv.enable = mkIf cfg.enableDirenv true;
home.file = {
".bash_profile".source = ./bash_profile;
".bashrc".source = pkgs.writeSubstitutedFile {
name = ".bashrc";
file = ./bashrc;