mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
bash: enable by default
This commit is contained in:
parent
71f25cba9d
commit
88a11d28f1
3 changed files with 13 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -115,8 +115,8 @@ in
|
|||
|
||||
environment.pathsToLink = [ "/share/fish" ];
|
||||
|
||||
environment.loginShell = mkDefault "${shell}/bin/fish -l";
|
||||
environment.variables.SHELL = mkDefault "${shell}/bin/fish";
|
||||
environment.loginShell = "${shell}/bin/fish -l";
|
||||
environment.variables.SHELL = "${shell}/bin/fish";
|
||||
|
||||
environment.etc."fish/config.fish".text = ''
|
||||
# /etc/fish/config.fish: DO NOT EDIT -- this file has been generated automatically.
|
||||
|
|
|
@ -118,8 +118,8 @@ in
|
|||
|
||||
environment.pathsToLink = [ "/share/zsh" ];
|
||||
|
||||
environment.loginShell = mkDefault "${shell}/bin/zsh -l";
|
||||
environment.variables.SHELL = mkDefault "${shell}/bin/zsh";
|
||||
environment.loginShell = "${shell}/bin/zsh -l";
|
||||
environment.variables.SHELL = "${shell}/bin/zsh";
|
||||
|
||||
environment.etc."zshenv".text = ''
|
||||
# /etc/zshenv: DO NOT EDIT -- this file has been generated automatically.
|
||||
|
|
Loading…
Add table
Reference in a new issue