Switched to a starship toml file and made nushell the default
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
./nix-output-monitor.nix
|
./nix-output-monitor.nix
|
||||||
./nushell
|
./nushell
|
||||||
./rip.nix
|
./rip.nix
|
||||||
./starship.nix
|
./starship
|
||||||
./tldr.nix
|
./tldr.nix
|
||||||
./zellij.nix
|
./zellij.nix
|
||||||
./zoxide.nix
|
./zoxide.nix
|
||||||
|
|||||||
@@ -1,281 +0,0 @@
|
|||||||
{...}: {
|
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
add_newline = false;
|
|
||||||
character = {
|
|
||||||
success_symbol = "[>](bold green)";
|
|
||||||
error_symbol = "[x](bold red)";
|
|
||||||
vimcmd_symbol = "[<](bold green)";
|
|
||||||
};
|
|
||||||
|
|
||||||
git_commit = {
|
|
||||||
tag_symbol = " tag ";
|
|
||||||
};
|
|
||||||
|
|
||||||
git_status = {
|
|
||||||
ahead = ">";
|
|
||||||
behind = "<";
|
|
||||||
diverged = "<>";
|
|
||||||
renamed = "r";
|
|
||||||
deleted = "x";
|
|
||||||
};
|
|
||||||
|
|
||||||
aws = {
|
|
||||||
symbol = "aws ";
|
|
||||||
};
|
|
||||||
|
|
||||||
azure = {
|
|
||||||
symbol = "az ";
|
|
||||||
};
|
|
||||||
|
|
||||||
bun = {
|
|
||||||
symbol = "bun ";
|
|
||||||
};
|
|
||||||
|
|
||||||
c = {
|
|
||||||
symbol = "C ";
|
|
||||||
};
|
|
||||||
|
|
||||||
cobol = {
|
|
||||||
symbol = "cobol ";
|
|
||||||
};
|
|
||||||
|
|
||||||
conda = {
|
|
||||||
symbol = "conda ";
|
|
||||||
};
|
|
||||||
|
|
||||||
crystal = {
|
|
||||||
symbol = "cr ";
|
|
||||||
};
|
|
||||||
|
|
||||||
cmake = {
|
|
||||||
symbol = "cmake ";
|
|
||||||
};
|
|
||||||
|
|
||||||
daml = {
|
|
||||||
symbol = "daml ";
|
|
||||||
};
|
|
||||||
|
|
||||||
dart = {
|
|
||||||
symbol = "dart ";
|
|
||||||
};
|
|
||||||
|
|
||||||
deno = {
|
|
||||||
symbol = "deno ";
|
|
||||||
};
|
|
||||||
|
|
||||||
dotnet = {
|
|
||||||
symbol = ".NET ";
|
|
||||||
};
|
|
||||||
|
|
||||||
directory = {
|
|
||||||
read_only = " ro";
|
|
||||||
};
|
|
||||||
|
|
||||||
docker_context = {
|
|
||||||
symbol = "docker ";
|
|
||||||
};
|
|
||||||
|
|
||||||
elixir = {
|
|
||||||
symbol = "exs ";
|
|
||||||
};
|
|
||||||
|
|
||||||
elm = {
|
|
||||||
symbol = "elm ";
|
|
||||||
};
|
|
||||||
|
|
||||||
fennel = {
|
|
||||||
symbol = "fnl ";
|
|
||||||
};
|
|
||||||
|
|
||||||
fossil_branch = {
|
|
||||||
symbol = "fossil ";
|
|
||||||
};
|
|
||||||
|
|
||||||
gcloud = {
|
|
||||||
symbol = "gcp ";
|
|
||||||
};
|
|
||||||
|
|
||||||
git_branch = {
|
|
||||||
symbol = "git ";
|
|
||||||
};
|
|
||||||
|
|
||||||
golang = {
|
|
||||||
symbol = "go ";
|
|
||||||
};
|
|
||||||
|
|
||||||
gradle = {
|
|
||||||
symbol = "gradle ";
|
|
||||||
};
|
|
||||||
|
|
||||||
guix_shell = {
|
|
||||||
symbol = "guix ";
|
|
||||||
};
|
|
||||||
|
|
||||||
hg_branch = {
|
|
||||||
symbol = "hg ";
|
|
||||||
};
|
|
||||||
|
|
||||||
java = {
|
|
||||||
symbol = "java ";
|
|
||||||
};
|
|
||||||
|
|
||||||
julia = {
|
|
||||||
symbol = "jl ";
|
|
||||||
};
|
|
||||||
|
|
||||||
kotlin = {
|
|
||||||
symbol = "kt ";
|
|
||||||
};
|
|
||||||
|
|
||||||
lua = {
|
|
||||||
symbol = "lua ";
|
|
||||||
};
|
|
||||||
|
|
||||||
nodejs = {
|
|
||||||
symbol = "nodejs ";
|
|
||||||
};
|
|
||||||
|
|
||||||
memory_usage = {
|
|
||||||
symbol = "memory ";
|
|
||||||
};
|
|
||||||
|
|
||||||
meson = {
|
|
||||||
symbol = "meson ";
|
|
||||||
};
|
|
||||||
|
|
||||||
nim = {
|
|
||||||
symbol = "nim ";
|
|
||||||
};
|
|
||||||
|
|
||||||
nix_shell = {
|
|
||||||
symbol = "nix ";
|
|
||||||
};
|
|
||||||
|
|
||||||
ocaml = {
|
|
||||||
symbol = "ml ";
|
|
||||||
};
|
|
||||||
|
|
||||||
opa = {
|
|
||||||
symbol = "opa ";
|
|
||||||
};
|
|
||||||
|
|
||||||
os.symbols = {
|
|
||||||
Alpaquita = "alq ";
|
|
||||||
Alpine = "alp ";
|
|
||||||
Amazon = "amz ";
|
|
||||||
Android = "andr ";
|
|
||||||
Arch = "rch ";
|
|
||||||
Artix = "atx ";
|
|
||||||
CentOS = "cent ";
|
|
||||||
Debian = "deb ";
|
|
||||||
DragonFly = "dfbsd ";
|
|
||||||
Emscripten = "emsc ";
|
|
||||||
EndeavourOS = "ndev ";
|
|
||||||
Fedora = "fed ";
|
|
||||||
FreeBSD = "fbsd ";
|
|
||||||
Garuda = "garu ";
|
|
||||||
Gentoo = "gent ";
|
|
||||||
HardenedBSD = "hbsd ";
|
|
||||||
Illumos = "lum ";
|
|
||||||
Linux = "lnx ";
|
|
||||||
Mabox = "mbox ";
|
|
||||||
Macos = "mac ";
|
|
||||||
Manjaro = "mjo ";
|
|
||||||
Mariner = "mrn ";
|
|
||||||
MidnightBSD = "mid ";
|
|
||||||
Mint = "mint ";
|
|
||||||
NetBSD = "nbsd ";
|
|
||||||
NixOS = "nix ";
|
|
||||||
OpenBSD = "obsd ";
|
|
||||||
OpenCloudOS = "ocos ";
|
|
||||||
openEuler = "oeul ";
|
|
||||||
openSUSE = "osuse ";
|
|
||||||
OracleLinux = "orac ";
|
|
||||||
Pop = "pop ";
|
|
||||||
Raspbian = "rasp ";
|
|
||||||
Redhat = "rhl ";
|
|
||||||
RedHatEnterprise = "rhel ";
|
|
||||||
Redox = "redox ";
|
|
||||||
Solus = "sol ";
|
|
||||||
SUSE = "suse ";
|
|
||||||
Ubuntu = "ubnt ";
|
|
||||||
Unknown = "unk ";
|
|
||||||
Windows = "win ";
|
|
||||||
};
|
|
||||||
|
|
||||||
package = {
|
|
||||||
symbol = "pkg ";
|
|
||||||
};
|
|
||||||
|
|
||||||
perl = {
|
|
||||||
symbol = "pl ";
|
|
||||||
};
|
|
||||||
|
|
||||||
php = {
|
|
||||||
symbol = "php ";
|
|
||||||
};
|
|
||||||
|
|
||||||
pijul_channel = {
|
|
||||||
symbol = "pijul ";
|
|
||||||
};
|
|
||||||
|
|
||||||
pulumi = {
|
|
||||||
symbol = "pulumi ";
|
|
||||||
};
|
|
||||||
|
|
||||||
purescript = {
|
|
||||||
symbol = "purs ";
|
|
||||||
};
|
|
||||||
|
|
||||||
python = {
|
|
||||||
symbol = "py ";
|
|
||||||
};
|
|
||||||
|
|
||||||
raku = {
|
|
||||||
symbol = "raku ";
|
|
||||||
};
|
|
||||||
|
|
||||||
ruby = {
|
|
||||||
symbol = "rb ";
|
|
||||||
};
|
|
||||||
|
|
||||||
rust = {
|
|
||||||
symbol = "rs ";
|
|
||||||
};
|
|
||||||
|
|
||||||
scala = {
|
|
||||||
symbol = "scala ";
|
|
||||||
};
|
|
||||||
|
|
||||||
spack = {
|
|
||||||
symbol = "spack ";
|
|
||||||
};
|
|
||||||
|
|
||||||
solidity = {
|
|
||||||
symbol = "solidity ";
|
|
||||||
};
|
|
||||||
|
|
||||||
status = {
|
|
||||||
symbol = "x = {(bold red) ";
|
|
||||||
};
|
|
||||||
|
|
||||||
sudo = {
|
|
||||||
symbol = "sudo ";
|
|
||||||
};
|
|
||||||
|
|
||||||
swift = {
|
|
||||||
symbol = "swift ";
|
|
||||||
};
|
|
||||||
|
|
||||||
terraform = {
|
|
||||||
symbol = "terraform ";
|
|
||||||
};
|
|
||||||
|
|
||||||
zig = {
|
|
||||||
symbol = "zig ";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
6
home/shell/starship/default.nix
Normal file
6
home/shell/starship/default.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{...}: {
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
settings = builtins.fromTOML (builtins.readFile ./theme.toml);
|
||||||
|
};
|
||||||
|
}
|
||||||
62
home/shell/starship/theme.toml
Normal file
62
home/shell/starship/theme.toml
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
add_newline = false
|
||||||
|
# A minimal left prompt
|
||||||
|
format = """$directory$character"""
|
||||||
|
palette = "catppuccin_mocha"
|
||||||
|
# move the rest of the prompt to the right
|
||||||
|
right_format = """$all"""
|
||||||
|
command_timeout = 1000
|
||||||
|
|
||||||
|
[directory.substitutions]
|
||||||
|
'~/tests/starship-custom' = 'work-project'
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
format = '[$symbol$branch(:$remote_branch)]($style)'
|
||||||
|
|
||||||
|
[aws]
|
||||||
|
format = '[$symbol(profile: "$profile" )(\(region: $region\) )]($style)'
|
||||||
|
disabled = false
|
||||||
|
style = 'bold blue'
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
|
[golang]
|
||||||
|
format = '[ ](bold cyan)'
|
||||||
|
|
||||||
|
[kubernetes]
|
||||||
|
symbol = '☸ '
|
||||||
|
disabled = true
|
||||||
|
detect_files = ['Dockerfile']
|
||||||
|
format = '[$symbol$context( \($namespace\))]($style) '
|
||||||
|
contexts = [
|
||||||
|
{ context_pattern = "arn:aws:eks:us-west-2:577926974532:cluster/zd-pvc-omer", style = "green", context_alias = "omerxx", symbol = " " },
|
||||||
|
]
|
||||||
|
|
||||||
|
[docker_context]
|
||||||
|
disabled = true
|
||||||
|
|
||||||
|
[palettes.catppuccin_mocha]
|
||||||
|
rosewater = "#f5e0dc"
|
||||||
|
flamingo = "#f2cdcd"
|
||||||
|
pink = "#f5c2e7"
|
||||||
|
mauve = "#cba6f7"
|
||||||
|
red = "#f38ba8"
|
||||||
|
maroon = "#eba0ac"
|
||||||
|
peach = "#fab387"
|
||||||
|
yellow = "#f9e2af"
|
||||||
|
green = "#a6e3a1"
|
||||||
|
teal = "#94e2d5"
|
||||||
|
sky = "#89dceb"
|
||||||
|
sapphire = "#74c7ec"
|
||||||
|
blue = "#89b4fa"
|
||||||
|
lavender = "#b4befe"
|
||||||
|
text = "#cdd6f4"
|
||||||
|
subtext1 = "#bac2de"
|
||||||
|
subtext0 = "#a6adc8"
|
||||||
|
overlay2 = "#9399b2"
|
||||||
|
overlay1 = "#7f849c"
|
||||||
|
overlay0 = "#6c7086"
|
||||||
|
surface2 = "#585b70"
|
||||||
|
surface1 = "#45475a"
|
||||||
|
surface0 = "#313244"
|
||||||
|
base = "#1e1e2e"
|
||||||
|
mantle = "#181825"
|
||||||
|
crust = "#11111b"
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
description = "panotaka";
|
description = "panotaka";
|
||||||
extraGroups = ["networkmanager" "wheel" "libvirtd"];
|
extraGroups = ["networkmanager" "wheel" "libvirtd"];
|
||||||
initialPassword = "panotaka";
|
initialPassword = "panotaka";
|
||||||
shell = pkgs.fish;
|
shell = pkgs.nu;
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user