2022-09-15 21:17:21 +00:00
|
|
|
{
|
2023-11-03 04:12:17 +00:00
|
|
|
programs.starship = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
2024-07-18 14:16:04 +00:00
|
|
|
battery.display = [
|
|
|
|
{
|
|
|
|
# display battery information if charge is <= 25%
|
|
|
|
threshold = 25;
|
|
|
|
}
|
|
|
|
];
|
2023-11-03 04:12:17 +00:00
|
|
|
# turn on fish directory truncation
|
|
|
|
directory.fish_style_pwd_dir_length = 1;
|
|
|
|
# number of directories not to truncate
|
|
|
|
directory.truncation_length = 2;
|
|
|
|
# because it includes cached memory it's reported as full a lot
|
|
|
|
memory_usage.disabled = true;
|
|
|
|
};
|
2022-09-15 21:17:21 +00:00
|
|
|
};
|
2023-11-03 04:12:17 +00:00
|
|
|
# TODO: investigate how to get cmd_duration to show up in transient prompt
|
|
|
|
# transient prompt
|
|
|
|
# programs.starship.enableTransience = true;
|
|
|
|
# programs.fish.functions = {
|
|
|
|
# starship_transient_prompt_func.body = ''
|
|
|
|
# starship module directory
|
|
|
|
# starship module cmd_duration
|
|
|
|
# starship module line_break
|
|
|
|
# starship module character
|
|
|
|
# starship module line_break
|
|
|
|
# '';
|
|
|
|
# };
|
2022-09-15 21:17:21 +00:00
|
|
|
}
|