158 lines
4.2 KiB
Nix
158 lines
4.2 KiB
Nix
|
{...}: {
|
||
|
programs.starship = {
|
||
|
enable = true;
|
||
|
enableTransience = true;
|
||
|
settings = {
|
||
|
add_newline = false;
|
||
|
character = {
|
||
|
success_symbol = "[ ](bold green)";
|
||
|
error_symbol = "[ ](bold red)";
|
||
|
};
|
||
|
command_timeout = 2000;
|
||
|
container = {symbol = " ";};
|
||
|
directory = {
|
||
|
truncation_length = 2;
|
||
|
fish_style_pwd_dir_length = 1;
|
||
|
truncate_to_repo = false;
|
||
|
};
|
||
|
direnv = {disabled = false;};
|
||
|
git_branch = {
|
||
|
only_attached = true;
|
||
|
ignore_branches = ["master" "main"];
|
||
|
};
|
||
|
git_commit = {
|
||
|
format = "[ $hash | $tag]($style) ";
|
||
|
tag_symbol = " ";
|
||
|
tag_disabled = false;
|
||
|
};
|
||
|
git_metrics = {disabled = false;};
|
||
|
git_status = {
|
||
|
stashed = " ";
|
||
|
ahead = " ";
|
||
|
behind = " ";
|
||
|
up_to_date = "";
|
||
|
diverged = " ";
|
||
|
conflicted = " ";
|
||
|
deleted = " ";
|
||
|
renamed = " ";
|
||
|
modified = " ";
|
||
|
staged = " ";
|
||
|
untracked = " ";
|
||
|
typechanged = " ";
|
||
|
};
|
||
|
hostname = {
|
||
|
ssh_only = false;
|
||
|
ssh_symbol = " ";
|
||
|
};
|
||
|
jobs = {symbol = " ";};
|
||
|
line_break = {disabled = false;};
|
||
|
localip = {disabled = false;};
|
||
|
memory_usage = {disabled = false;};
|
||
|
os = {
|
||
|
disabled = false;
|
||
|
format = "on [$symbol]($style) ";
|
||
|
};
|
||
|
python.python_binary = "python3";
|
||
|
shell = {
|
||
|
disabled = false;
|
||
|
format = "using [$indicator ]($style)";
|
||
|
};
|
||
|
status = {
|
||
|
disabled = false;
|
||
|
map_symbol = true;
|
||
|
pipestatus = true;
|
||
|
symbol = " ";
|
||
|
success_symbol = "";
|
||
|
not_executable_symbol = " ";
|
||
|
not_found_symbol = " ";
|
||
|
sigint_symbol = " ";
|
||
|
signal_symbol = " ";
|
||
|
};
|
||
|
sudo = {disabled = false;};
|
||
|
# Nerd Font symbol config
|
||
|
# from `starship preset nerd-font-symbols`
|
||
|
aws.symbol = " ";
|
||
|
buf.symbol = " ";
|
||
|
c.symbol = " ";
|
||
|
conda.symbol = " ";
|
||
|
crystal.symbol = " ";
|
||
|
dart.symbol = " ";
|
||
|
directory.read_only = " ";
|
||
|
docker_context.symbol = " ";
|
||
|
elixir.symbol = " ";
|
||
|
elm.symbol = " ";
|
||
|
fennel.symbol = " ";
|
||
|
fossil_branch.symbol = " ";
|
||
|
git_branch.symbol = " ";
|
||
|
golang.symbol = " ";
|
||
|
guix_shell.symbol = " ";
|
||
|
haskell.symbol = " ";
|
||
|
haxe.symbol = " ";
|
||
|
hg_branch.symbol = " ";
|
||
|
# hostname.ssh_symbol = " ";
|
||
|
java.symbol = " ";
|
||
|
julia.symbol = " ";
|
||
|
kotlin.symbol = " ";
|
||
|
lua.symbol = " ";
|
||
|
memory_usage.symbol = " ";
|
||
|
meson.symbol = " ";
|
||
|
nim.symbol = " ";
|
||
|
nix_shell.symbol = " ";
|
||
|
nodejs.symbol = " ";
|
||
|
ocaml.symbol = " ";
|
||
|
os.symbols = {
|
||
|
Alpaquita = " ";
|
||
|
Alpine = " ";
|
||
|
Amazon = " ";
|
||
|
Android = " ";
|
||
|
Arch = " ";
|
||
|
Artix = " ";
|
||
|
CentOS = " ";
|
||
|
Debian = " ";
|
||
|
DragonFly = " ";
|
||
|
Emscripten = " ";
|
||
|
EndeavourOS = " ";
|
||
|
Fedora = " ";
|
||
|
FreeBSD = " ";
|
||
|
Garuda = " ";
|
||
|
Gentoo = " ";
|
||
|
HardenedBSD = " ";
|
||
|
Illumos = " ";
|
||
|
Linux = " ";
|
||
|
Mabox = " ";
|
||
|
Macos = " ";
|
||
|
Manjaro = " ";
|
||
|
Mariner = " ";
|
||
|
MidnightBSD = " ";
|
||
|
Mint = " ";
|
||
|
NetBSD = " ";
|
||
|
NixOS = " ";
|
||
|
OpenBSD = " ";
|
||
|
openSUSE = " ";
|
||
|
OracleLinux = " ";
|
||
|
Pop = " ";
|
||
|
Raspbian = " ";
|
||
|
Redhat = " ";
|
||
|
RedHatEnterprise = " ";
|
||
|
Redox = " ";
|
||
|
Solus = " ";
|
||
|
SUSE = " ";
|
||
|
Ubuntu = " ";
|
||
|
Unknown = " ";
|
||
|
Windows = " ";
|
||
|
};
|
||
|
package.symbol = " ";
|
||
|
perl.symbol = " ";
|
||
|
php.symbol = " ";
|
||
|
pijul_channel.symbol = " ";
|
||
|
python.symbol = " ";
|
||
|
rlang.symbol = " ";
|
||
|
ruby.symbol = " ";
|
||
|
rust.symbol = " ";
|
||
|
scala.symbol = " ";
|
||
|
swift.symbol = " ";
|
||
|
zig.symbol = " ";
|
||
|
};
|
||
|
};
|
||
|
}
|