Configure shell prompt

This commit is contained in:
Riley Apeldoorn 2023-05-21 23:38:26 +00:00
parent bb195de4b4
commit bb131992d6
2 changed files with 19 additions and 3 deletions

View file

@ -18,11 +18,26 @@ in with lib; {
# Configure the shell itself
programs.bash = {
enable = true;
shellAliases = {} // cfg.extraAliases;
shellAliases = {
":q" = "exit";
"t" = "exa -T";
} // cfg.extraAliases;
};
# Configure the prompt
programs.starship.enable = true;
programs.starship = {
enable = true;
settings = {
format = ''
$directory$git_branch$cmd_duration$sudo
$character
'';
character = {
success_symbol = "[>](bold green)";
error_symbol = "[](bold red)";
};
};
};
};

View file

@ -9,7 +9,8 @@ let theme = config.theme; in {
term = "xterm";
enable_audio_bell = false;
scrollback_lines = 5000000;
background = "#${theme.background.basic}";
background = "#${theme.background.minor}";
bold_font = "Fira Code Medium";
};
font = {