~ruther/guix-local

2c16be569c0ed21a44c615fb1285aeacd4ee7480 — Marius Bakke 8 years ago 0ab59dd
system: Return early in skeleton '.bashrc' when the shell is non-interactive.

* gnu/system/shadow.scm (default-skeletons)[bashrc]: Add return statement.
1 files changed, 3 insertions(+), 0 deletions(-)

M gnu/system/shadow.scm
M gnu/system/shadow.scm => gnu/system/shadow.scm +3 -0
@@ 163,6 163,9 @@ then
    # is an SSH session (as in \"ssh host command\"), source
    # /etc/profile so we get PATH and other essential variables.
    [[ -n \"$SSH_CLIENT\" ]] && source /etc/profile

    # Don't do anything else.
    return
fi

# Adjust the prompt depending on whether we're in 'guix environment'.