Lots of starship config updates

Remove language and OS custom icons, also some misc things like sudo,
version, read-only dir, etc... to use defaults instead. Keep custom
for git information and container indicator

Add jobs with custom icon because the default has weird spacing

Update zsh transient function so that transient prompt matches
starship prompt

Switch Emoji font back to Noto, some of starship config didn't display
properly with EmojiOne
This commit is contained in:
Evie Litherland-Smith 2024-04-02 17:32:56 +01:00
parent 0667438150
commit 07be39befd
3 changed files with 14 additions and 67 deletions

View file

@ -59,8 +59,8 @@
package = packages.${system}."iosevka-custom-nerdfont";
};
emoji = {
name = "EmojiOne Color";
package = emojione;
name = "Noto Color Emoji";
package = noto-fonts-emoji;
};
};
};

View file

@ -3,21 +3,19 @@
enable = true;
enableTransience = true;
settings = {
c = {symbol = " ";};
command_timeout = 1000;
container = {symbol = " ";};
add_newline = false;
character = {
success_symbol = "[>](bold green)";
error_symbol = "[>](bold red)";
success_symbol = "[󰁔 ](bold green)";
error_symbol = "[󰁔 ](bold red)";
};
command_timeout = 2000;
container = {symbol = " ";};
directory = {
truncation_length = 2;
fish_style_pwd_dir_length = 1;
read_only = "󰉐 ";
truncate_to_repo = false;
};
line_break.disabled = false;
direnv = {disabled = false;};
git_branch = {
symbol = " ";
only_attached = true;
@ -28,7 +26,7 @@
tag_symbol = " ";
tag_disabled = false;
};
git_metrics.disabled = false;
git_metrics = {disabled = false;};
git_status = {
stashed = " ";
ahead = " ";
@ -43,80 +41,29 @@
untracked = " ";
typechanged = " ";
};
golang = {symbol = " ";};
guix_shell = {symbol = " ";};
haskell = {symbol = " ";};
hostname = {
ssh_only = true;
ssh_symbol = "󰢹 ";
};
java = {symbol = " ";};
jobs = {symbol = "󰈏 ";};
line_break = {disabled = false;};
localip = {disabled = false;};
lua = {symbol = " ";};
memory_usage = {
disabled = false;
symbol = " ";
};
nix_shell.symbol = "󱄅 ";
memory_usage = {disabled = false;};
os = {
disabled = false;
format = "on [$symbol]($style) ";
style = "bold blue";
symbols = {
Alpine = " ";
Android = " ";
Arch = " ";
CentOS = " ";
Debian = " ";
EndeavourOS = " ";
Fedora = " ";
FreeBSD = " ";
Gentoo = " ";
Illumos = " ";
Linux = " ";
Macos = " ";
Manjaro = " ";
Mint = "󰣭 ";
NixOS = " ";
OpenBSD = " ";
openSUSE = " ";
Pop = " ";
Raspbian = " ";
Redhat = " ";
RedHatEnterprise = " ";
Solus = " ";
SUSE = " ";
Ubuntu = " ";
Unknown = " ";
Windows = " ";
};
};
package = {symbol = " ";};
python = {
symbol = "󰌠 ";
python_binary = "python3";
};
rust = {symbol = "󱘗 ";};
python = {python_binary = "python3";};
shell = {
disabled = false;
format = "using [$indicator ]($style)";
nu_indicator = "ν";
};
status = {
disabled = false;
map_symbol = true;
pipestatus = true;
symbol = " ";
success_symbol = "";
not_executable_symbol = " ";
not_found_symbol = " ";
sigint_symbol = " ";
signal_symbol = " ";
};
sudo = {
disabled = false;
symbol = " ";
};
sudo = {disabled = false;};
};
};
}

View file

@ -14,7 +14,7 @@ zle-line-init() {
local saved_prompt=$PROMPT
local saved_rprompt=$RPROMPT
PROMPT='> '
PROMPT='󰁔 '
RPROMPT=''
zle .reset-prompt
PROMPT=$saved_prompt