bundle modules

This commit is contained in:
2026-02-04 08:30:19 +01:00
parent 3ee0c62a2e
commit 2c2f817459
7 changed files with 48 additions and 42 deletions

10
modules/shell/bash.nix Normal file
View File

@@ -0,0 +1,10 @@
{ pkgs, ... }:
{
programs.bash = {
promptInit = ''PS1="$(${pkgs.ncurses}/bin/tput bold)\w \$([[ \$? == 0 ]] && echo \"\[\033[1;32m\]\" || echo \"\[\033[1;31m\]\")\$$(${pkgs.ncurses}/bin/tput sgr0) "'';
interactiveShellInit = ''
set -o vi
'';
completion.enable = true;
};
}