Configure shell prompt
This commit is contained in:
parent
bb195de4b4
commit
bb131992d6
2 changed files with 19 additions and 3 deletions
|
@ -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)";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue