Update prompt

This commit is contained in:
2026-03-02 12:58:21 +01:00
parent da228b499f
commit d8ee1a648d
4 changed files with 56 additions and 60 deletions

View File

@@ -19,6 +19,9 @@ clean:
rm -rf result rm -rf result
rm -rf *.qcow2 rm -rf *.qcow2
format:
treefmt .
switch: switch:
nh os switch nh os switch

View File

@@ -11,12 +11,12 @@
}; };
"org/gnome/Console" = { "org/gnome/Console" = {
custom-font = lib.mkDefault "FiraCode Nerd Font Mono 11"; custom-font = lib.mkDefault "FiraCode Nerd Font 11";
use-system-font = false; use-system-font = false;
}; };
"org/gnome/TextEditor" = { "org/gnome/TextEditor" = {
custom-font = lib.mkDefault "Fira Code weight=450 11"; custom-font = lib.mkDefault "Fira Code Nerd Font weight=450 11";
use-system-font = false; use-system-font = false;
}; };

View File

@@ -9,10 +9,15 @@
settings = { settings = {
format = lib.concatStrings [ format = lib.concatStrings [
"$hostname" "$hostname"
"\${custom.ssh_status}"
"\${custom.distrobox}" "\${custom.distrobox}"
"\${nix_shell}" "$nix_shell"
"$python" "$python"
"$nodejs"
"$rust"
"$golang"
"$php"
"\${custom.android}"
"[](fg:#000000)"
"[](#FFFFFF)" "[](#FFFFFF)"
"[ 🐺 ](bg:#FFFFFF fg:#1E91D6)" "[ 🐺 ](bg:#FFFFFF fg:#1E91D6)"
"[](bg:#0072BB fg:#FFFFFF)" "[](bg:#0072BB fg:#FFFFFF)"
@@ -21,32 +26,45 @@
"$git_branch" "$git_branch"
"$git_status" "$git_status"
"[](fg:#E18335 bg:#061A40)" "[](fg:#E18335 bg:#061A40)"
"\${custom.android}"
"$nodejs"
"$rust"
"$golang"
"$php"
"[](fg:#061A40 bg:#1D2F51)"
"$time" "$time"
"[ ](fg:#1D2F51)" "[ ](fg:#061A40)"
"\n$character" "\n$character"
]; ];
hostname = {
ssh_only = true;
format = "[](fg:#1E91D6)[$hostname](bg:#1E91D6 fg:#FFFFFF)[](fg:#1E91D6) ";
};
custom.distrobox = {
when = "printenv CONTAINER_ID";
command = "echo $CONTAINER_ID";
format = "[](fg:#FF5F00)[󰏖 $output ](bg:#FF5F00 fg:#FFFFFF)[](fg:#FF5F00) ";
};
nix_shell = {
format = "[](fg:#7EBAE4)[ $state ](bg:#7EBAE4 fg:#061A40)[](fg:#7EBAE4) ";
};
custom.android = {
when = "test -n \"$IN_ANDROID_ENV\"";
format = "[](fg:#3DDC84)[󰀲 Android ](bg:#3DDC84 fg:#061A40)[](fg:#3DDC84) ";
};
directory = { directory = {
style = "fg:#e3e5e5 bg:#0072BB"; style = "fg:#e3e5e5 bg:#0072BB";
format = "[ $path ]($style)"; format = "[ $path ]($style)";
truncation_length = 3; truncation_length = 3;
truncation_symbol = "/";
substitutions = { substitutions = {
"Documents" = "󰈙 "; "Documents" = "󰈙 ";
"Downloads" = " "; "Downloads" = "󰇚 ";
"Music" = " "; "Music" = "󰝚 ";
"Pictures" = " "; "Pictures" = "󰙏 ";
}; };
}; };
git_branch = { git_branch = {
symbol = ""; symbol = "󰊢";
style = "bg:#E18335"; style = "bg:#E18335";
format = "[[ $symbol $branch ](fg:#0072BB bg:#E18335)]($style)"; format = "[[ $symbol $branch ](fg:#0072BB bg:#E18335)]($style)";
}; };
@@ -56,66 +74,40 @@
format = "[[($all_status$ahead_behind )](fg:#0072BB bg:#E18335)]($style)"; format = "[[($all_status$ahead_behind )](fg:#0072BB bg:#E18335)]($style)";
}; };
python = {
symbol = "󰌠";
format = "[](fg:#4B8BBE)[$symbol $version](bg:#4B8BBE fg:#FFFFFF)[](fg:#4B8BBE) ";
};
nodejs = { nodejs = {
symbol = ""; symbol = "󰎙";
style = "bg:#061A40"; format = "[](fg:#68A063)[$symbol $version](bg:#68A063 fg:#FFFFFF)[](fg:#68A063) ";
format = "[[ $symbol ($version) ](fg:#0072BB bg:#061A40)]($style)";
}; };
rust = { rust = {
symbol = ""; symbol = "󱘗";
style = "bg:#061A40"; format = "[](fg:#CE412B)[$symbol $version](bg:#CE412B fg:#FFFFFF)[](fg:#CE412B) ";
format = "[[ $symbol ($version) ](fg:#0072BB bg:#061A40)]($style)";
}; };
golang = { golang = {
symbol = ""; symbol = "󰟓";
style = "bg:#061A40"; format = "[](fg:#00ADD8)[$symbol $version](bg:#00ADD8 fg:#FFFFFF)[](fg:#00ADD8) ";
format = "[[ $symbol ($version) ](fg:#0072BB bg:#061A40)]($style)";
}; };
php = { php = {
symbol = ""; symbol = "󰌟";
style = "bg:#061A40"; format = "[](fg:#8892BF)[$symbol $version](bg:#8892BF fg:#FFFFFF)[](fg:#8892BF) ";
format = "[[ $symbol ($version) ](fg:#0072BB bg:#061A40)]($style)";
}; };
time = { time = {
disabled = false; disabled = false;
time_format = "%R"; style = "bg:#061A40";
style = "bg:#1D2F51"; format = "[[ 󰥔 $time ](fg:#a0a9cb bg:#061A40)]($style)";
format = "[[ $time ](fg:#a0a9cb bg:#1D2F51)]($style)";
}; };
nix_shell = { character = {
disabled = false; success_symbol = "[](bold green)";
impure_msg = "[impure shell](bold red)"; error_symbol = "[](bold red)";
pure_msg = "[pure shell](bold green)";
unknown_msg = "[unknown shell](bold yellow)";
format = "via [ $state( \($name\))](bold blue) ";
};
custom.android = {
description = "Show label when inside Android FHS env";
when = "test -n \"$IN_ANDROID_ENV\"";
symbol = "🤖 ";
style = "fg:green bg:#061A40";
format = "[ $symbol Android ]($style)";
};
custom.distrobox = {
description = "Indicate when inside a Distrobox container";
when = "printenv CONTAINER_ID";
command = "printenv CONTAINER_ID";
format = "[$symbol$output]($style) ";
symbol = "📦 ";
style = "bold purple";
};
hostname = {
ssh_only = true;
format = "[](fg:#1E91D6)[$hostname](bg:#1E91D6 fg:#FFFFFF)[](fg:#1E91D6) ";
disabled = false;
}; };
}; };
}; };

View File

@@ -53,6 +53,7 @@
curl curl
fet.packages.${pkgs.stdenv.hostPlatform.system}.default fet.packages.${pkgs.stdenv.hostPlatform.system}.default
ddcutil ddcutil
direnv
discord discord
distrobox distrobox
docker-buildx docker-buildx