Compare commits
1 commit
40968edd0d
...
89b845562c
Author | SHA1 | Date | |
---|---|---|---|
89b845562c |
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
# Launch fish if shell is interactive (from https://wiki.nixos.org/wiki/Fish)
|
||||||
|
bash.interactiveShellInit = # bash
|
||||||
|
''
|
||||||
|
if [[ "$(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm)" != "fish" && -z "$BASH_EXECUTION_STRING" ]]; then shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""; exec ${pkgs.fish}/bin/fish "$LOGIN_OPTION"; fi
|
||||||
|
'';
|
||||||
# Default shell
|
# Default shell
|
||||||
fish.enable = true;
|
fish.enable = true;
|
||||||
# Shell prompt
|
# Shell prompt
|
||||||
|
|
Loading…
Add table
Reference in a new issue