test starship config

This commit is contained in:
Frost-Phoenix 2023-11-06 21:54:14 +01:00
parent d9bdc29527
commit 653fd7239d
2 changed files with 156 additions and 38 deletions

View file

@ -13,7 +13,7 @@
settings = { settings = {
confirm_os_window_close = 0; confirm_os_window_close = 0;
background_opacity = "0.55"; background_opacity = "0.55";
window_padding_width = 5; window_padding_width = 10;
scrollback_lines = 10000; scrollback_lines = 10000;
enable_audio_bell = false; enable_audio_bell = false;
}; };

View file

@ -1,42 +1,160 @@
{ lib, ... }: {lib, ...}:
{ {
programs.starship = { programs.starship = {
enable = true; enable = true;
# settings = { enableFishIntegration = true;
# add_newline = false;
# character = { settings = {
# success_symbol = "[󰊠 ](bold #cba6f7)[󰊠 ](bold #f2cdcd)[󰊠 ](bold #b4befe)[ ](bold #a6e3a1)"; format = lib.concatStrings [
# error_symbol = "[󰊠 ](bold #cba6f7)[󰊠 ](bold #f2cdcd)[󰊠 ](bold #b4befe)[ ](bold #f38ba8)"; #"[ ](fg:#1e1e2e bg:#ff00aa)"
# vimcmd_symbol = "[ NORMAL](bold #fab387)"; #"$username"
# vimcmd_visual_symbol = "[ VISUAL](bold #89dceb)"; #"[](fg:#ff00aa)"
# }; "$directory"
# format = lib.strings.concatStrings [ "[](fg:#1e1e2e bg:#cba6f7)"
# "$nix_shell" "$git_branch"
# "$os" "$git_status"
# "$directory" "[](fg:#cba6f7 bg:#89b4fa)"
# "$container" "$c"
# "$git_branch $git_status" "$elixir"
# "$python" "$elm"
# "$nodejs" "$golang"
# "$lua" "$haskell"
# "$rust" "$java"
# "$java" "$julia"
# "$c" "$nodejs"
# "$golang" "$nim"
# "$cmd_duration" "$rust"
# "$status" "[](fg:#89b4fa bg:#94e2d5)"
# "\n$character" "$nix_shell"
# ]; "$docker_context"
# git_branch.symbol = " "; "[ ](fg:#94e2d5)"
# git_commit.tag_disabled = false; ];
# git_status = {
# ahead = ''⇡''${count}''; add_newline = false; # Disable the blank line at the start of the prompt
# behind = ''⇣''${count}'';
# diverged = ''⇕⇡''${ahead_count}⇣''${behind_count}''; # You can also replace your username with a neat symbol like  to save some space
# staged = "+$count"; username = {
# }; show_always = true;
# kubernetes.disabled = false; #style_user = "fg:#11111b bg:#89B4FA";
# time.disabled = false; #style_root = "fg:#11111b bg:#cba6f7";
# }; #format = "[$user ]($style)";
format = "[󱄅 ](fg:#11111b bg:#ff00aa)";
};
directory = {
style = "fg:#cdd6f4";
format = "[ $path ]($style)";
truncation_length = 3;
truncation_symbol = "../";
};
# Here is how you can shorten some long paths by text replacement
# similar to mapped_locations in Oh My Posh:
#[directory.substitutions]
#"Documents" = " "
#"Downloads" = " "
#"Music" = " "
#"Pictures" = " "
#"~" = "󰋞 "
# Keep in mind that the order matters. For example:
# "Important Documents" = "  "
# will not be replaced, because "Documents" was already substituted before.
# So either put "Important Documents" before "Documents" or use the substituted version:
# "Important  " = "  "
c = {
symbol = " ";
style = "fg:#11111b bg:#89b4fa";
format = "[[ $symbol ($version) ](fg:#11111b bg:#89b4fa)]($style)";
};
docker_context = {
symbol = " ";
style = "fg:#11111b bg:#94e2d5";
format = "[[ $symbol $context ](fg:#11111b bg:#94e2d5)]($style) $path";
};
elixir = {
symbol = " ";
style = "fg:#11111b bg:#89b4fa";
format = "[[ $symbol ($version) ](fg:#11111b bg:#89b4fa)]($style)";
};
elm = {
symbol = " ";
style = "fg:#11111b bg:#89b4fa";
format = "[[ $symbol ($version) ](fg:#11111b bg:#89b4fa)]($style)";
};
git_branch = {
symbol = "󰘬";
style = "fg:#11111b bg:#cba6f7";
format = "[[ $symbol $branch ](fg:#11111b bg:#cba6f7)]($style)";
};
git_status = {
style = "fg:#11111b bg:#cba6f7";
format = "[[($all_status$ahead_behind )](fg:#11111b bg:#cba6f7)]($style)";
};
golang = {
symbol = " ";
style = "fg:#11111b bg:##89b4fa";
#format = "[[ $symbol ($version) ](fg:#11111b bg:#89b4fa)]($style)";
format = "[[ $symbol](fg:#11111b bg:#89b4fa)]($style)";
};
haskell = {
symbol = " ";
style = "fg:#11111b bg:#89b4fa";
format = "[[ $symbol ($version) ](fg:#11111b bg:#89b4fa)]($style)";
};
java = {
symbol = " ";
style = "fg:#11111b bg:#89b4fa";
format = "[[ $symbol ($version) ](fg:#11111b bg:#89b4fa)]($style)";
};
julia = {
symbol = " ";
style = "fg:#11111b bg:#89b4fa";
format = "[[ $symbol ($version) ](fg:#11111b bg:#89b4fa)]($style)";
};
nodejs = {
symbol = "";
style = "fg:#11111b bg:#89b4fa";
format = "[[ $symbol ($version) ](fg:#11111b bg:#89b4fa)]($style)";
};
nim = {
symbol = " ";
style = "fg:#11111b bg:#89b4fa";
format = "[[ $symbol ($version) ](fg:#11111b bg:#89b4fa)]($style)";
};
nix_shell = {
symbol = "󱄅 ";
impure_msg = "i";
pure_msg = "p";
unknown_msg = "u";
style = "fg:#11111b bg:#94e2d5";
format = "[[ $symbol$state:$name ](fg:#11111b bg:#94e2d5)]($style)";
};
rust = {
symbol = "";
style = "fg:#11111b bg:#89b4fa";
format = "[[ $symbol ($version) ](fg:#11111b bg:#89b4fa)]($style)";
};
time = {
disabled = false;
time_format = "%R"; # Hour:Minute Format
style = "fg:#11111b bg:#89b4fa";
format = "[[ $time ](fg:#11111b bg:#89b4fa)]($style)";
};
};
}; };
} }