feat(homes/rafiq): enable starship prompt in fish shell

This commit is contained in:
Mohammad Rafiq 2025-07-04 18:42:59 +08:00
parent 9fffa1d295
commit 8eceb81ad9
No known key found for this signature in database
2 changed files with 23 additions and 28 deletions

View file

@ -2,6 +2,7 @@
let
inherit (builtins) toString;
inherit (lib) getExe mkOrder;
inherit (lib.strings) concatStrings;
screensaverTimeout = toString 100;
screensaverCommand = "${getExe pkgs.cbonsai} -S -w 0.1 -L 40 -M 2 -b 2";
in
@ -9,6 +10,28 @@ in
home.shell.enableShellIntegration = true;
home.sessionVariables.SHELL = "fish";
programs.fish.enable = true;
programs.starship = {
enable = true;
settings = {
add_newline = false;
format = concatStrings [
# First Line
## Left Prompt
"$hostname$directory"
"$fill"
## Right Prompt
"$all"
# Second Line
## Left Prompt
"$character"
];
git_branch.format = "[$symbol$branch(:$remote_branch)]($style) ";
shlvl.disabled = false;
username.disabled = true;
fill.symbol = " ";
};
};
# figure out for fish
programs.zsh.initContent =
mkOrder 1200
# zsh

View file

@ -1,28 +0,0 @@
{ lib, ... }:
let
inherit (lib.strings) concatStrings;
in
{
programs.starship = {
#TODO: enable after switching to fish
enable = false;
# settings = {
# add_newline = false;
# format = concatStrings [
# # First Line
# ## Left Prompt
# "$hostname$directory"
# "$fill"
# ## Right Prompt
# "$all"
# # Second Line
# ## Left Prompt
# "$character"
# ];
# git_branch.format = "[$symbol$branch(:$remote_branch)]($style) ";
# shlvl.disabled = false;
# username.disabled = true;
# fill.symbol = " ";
# };
};
}