1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/bash.nix

11 lines
299 B
Nix
Raw Normal View History

2025-12-27 22:22:54 +01:00
{ pkgs, ... }:
{
2019-04-19 03:11:51 +02:00
programs.bash = {
2025-12-27 22:22:54 +01:00
promptInit = ''PS1="$(${pkgs.ncurses}/bin/tput bold)\w \$([[ \$? == 0 ]] && echo \"\[\033[1;32m\]\" || echo \"\[\033[1;31m\]\")\$$(${pkgs.ncurses}/bin/tput sgr0) "'';
2019-04-19 03:11:51 +02:00
interactiveShellInit = ''
set -o vi
'';
2025-12-02 21:37:02 +01:00
completion.enable = true;
2019-04-19 03:11:51 +02:00
};
}