Updates to Starship
This commit is contained in:
parent
5b662326ba
commit
b20024a9d9
3 changed files with 24 additions and 18 deletions
|
@ -2,12 +2,10 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
./dconf-dock.nix
|
||||
# TODO Re-eanble this when in hm 24.11
|
||||
# ../../software/gui/ghostty.nix
|
||||
../../software/gui/ghostty.nix
|
||||
];
|
||||
programs.bash.sessionVariables = {
|
||||
DISABLE_TMUX = "true";
|
||||
GTK_THEME = "Breeze"; # To set the firefox theme
|
||||
};
|
||||
programs.fish.shellInit = ''
|
||||
set DISABLE_TMUX "true"
|
||||
|
|
|
@ -12,8 +12,8 @@ let
|
|||
errorFG = "#${config.lib.stylix.colors.base00}";
|
||||
timeFG = "#${config.lib.stylix.colors.base0C}";
|
||||
|
||||
# blackColor = "#${config.lib.stylix.colors.base00}";
|
||||
# whiteColor = "#${config.lib.stylix.colors.base06}";
|
||||
blackColor = "#${config.lib.stylix.colors.base00}";
|
||||
whiteColor = "#${config.lib.stylix.colors.base06}";
|
||||
in
|
||||
{
|
||||
programs.starship = {
|
||||
|
@ -22,21 +22,23 @@ in
|
|||
enableFishIntegration = true;
|
||||
settings = {
|
||||
format = lib.concatStrings [
|
||||
# "[](${usernameBG})"
|
||||
# "$username"
|
||||
# "$hostname"
|
||||
# "[](bg:${directoryBG} fg:${usernameBG})"
|
||||
"[](${directoryBG})"
|
||||
# Othe symbols: // //
|
||||
"[](${blackColor})"
|
||||
"$time"
|
||||
"[](bg:${usernameBG} fg:${blackColor})"
|
||||
"$hostname"
|
||||
"[](fg:${usernameBG} bg:${directoryBG})"
|
||||
# "[](${directoryBG})"
|
||||
"$directory"
|
||||
"[](fg:${directoryBG} bg:${statusBG})"
|
||||
"[](fg:${directoryBG} bg:${statusBG})"
|
||||
"$git_branch"
|
||||
"$git_status"
|
||||
"$rust"
|
||||
"$docker_context"
|
||||
"$nix_shell"
|
||||
"[](fg:${statusBG} bg:${errorBG})"
|
||||
"[](fg:${statusBG} bg:${errorBG})"
|
||||
"$status"
|
||||
"[ ](fg:${errorBG})"
|
||||
"[ ](fg:${errorBG})"
|
||||
];
|
||||
|
||||
username = {
|
||||
|
@ -61,7 +63,7 @@ in
|
|||
|
||||
nix_shell = {
|
||||
disabled = false;
|
||||
heuristic = true;
|
||||
heuristic = false;
|
||||
symbol = " ";
|
||||
format = "[$symbol]($style)";
|
||||
style = "fg:${statusFG} bg:${statusBG}";
|
||||
|
@ -106,7 +108,7 @@ in
|
|||
time = {
|
||||
disabled = false;
|
||||
time_format = "%R"; # Hour:Minute Format
|
||||
style = "fg:${timeFG} bg:${timeBG}";
|
||||
style = "fg:${whiteColor} bg:${blackColor}";
|
||||
format = "[ $time ]($style)";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,9 +1,15 @@
|
|||
{ theme, ... }: {
|
||||
|
||||
imports = [ ../../../../stylix/themes/${theme}/home-manager/ghostty.nix ];
|
||||
# TODO Re-enable this when 25.05 is out or when this is compabile with 24.11
|
||||
# imports = [ ../../../../stylix/themes/${theme}/home-manager/ghostty.nix ];
|
||||
|
||||
# Otherwise it sets the term to "xterm-ghostty" and it fails to connect to ssh
|
||||
programs.bash.sessionVariables = { TERM = "xterm-256color"; };
|
||||
programs.fish.shellInit = ''set TERM "xterm-256color '';
|
||||
|
||||
programs.ghostty = {
|
||||
enable = true;
|
||||
# TODO Re-enable this when 25.05 is out or when this is compabile with 24.11
|
||||
enable = false;
|
||||
enableBashIntegration = true;
|
||||
enableFishIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
|
|
Loading…
Reference in a new issue