From 88a11d28f1d7da749ad47e5abd09712de99f0b96 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sun, 9 Jul 2017 10:16:57 +0200 Subject: bash: enable by default --- modules/programs/bash.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'modules/programs/bash.nix') diff --git a/modules/programs/bash.nix b/modules/programs/bash.nix index da79742..feb17ca 100644 --- a/modules/programs/bash.nix +++ b/modules/programs/bash.nix @@ -22,7 +22,7 @@ in programs.bash.enable = mkOption { type = types.bool; - default = false; + default = true; description = "Whether to configure bash as an interactive shell."; }; @@ -59,6 +59,14 @@ in # /etc/bashrc: DO NOT EDIT -- this file has been generated automatically. # This file is read for interactive shells. + if [ -z "$PS1" ]; then return; fi + + PS1='\h:\W \u\$ ' + # Make bash check its window size after a process completes + shopt -s checkwinsize + + [ -r "/etc/bashrc_$TERM_PROGRAM" ] && . "/etc/bashrc_$TERM_PROGRAM" + # Only execute this file once per shell. if [ -n "$__ETC_BASHRC_SOURCED" -o -n "$NOSYSBASHRC" ]; then return; fi __ETC_BASHRC_SOURCED=1 -- cgit v1.2.3