feat: starship prompt configuration

This commit is contained in:
Infinidoge 2021-09-16 00:21:27 -04:00
parent 6bea4428fd
commit 157b83e43d

View file

@ -3,45 +3,69 @@
enable = true; enable = true;
enableBashIntegration = true; enableBashIntegration = true;
settings = { settings =
let
line_style = "bold green";
in
{
add_newline = true; add_newline = true;
format = '' format = ''
($status$cmd_duration) ($status$cmd_duration)
[$shlvl$shell>](bold green) $username@$hostname [($shlvl)($shell)$username@$hostname](${line_style})
[](bold green)$directory$git_branch$git_commit$git_state$git_metrics$git_status$vcsh$hg_branch [$directory($git_branch$git_status(@$git_commit)( $git_metrics)( $git_state))](${line_style})
([|](bold green)$crystal$dart$deno$dotnet$elixir$elm$erlang$golang$helm$java$julia$kotlin$lua$nim$nodejs$ocaml$perl$php$purescript$python$red$ruby$rust$scaly$swift$terraform$vlang$vagrant$zig) [](${line_style})$character
([|](bold green)$nix_shell$conda$docker_context$package$cmake$kubernetes$env_var)
([|](bold green)$aws$gcloud$openstack)
[](bold green) $character
''; '';
# format = ''
# (╢$status $cmd_duration\n)[┌───┨$shlvl┠──┨$shell┠────────>](bold green) $username@$hostname
# [│](bold green) $directory$git_branch$git_commit$git_state$git_metrics$git_status$vcsh$hg_branch
# (\n[|](bold green) $crystal$dart$deno$dotnet$elixir$elm$erlang$golang$helm$java$julia$kotlin$lua$nim$nodejs$ocaml$perl$php$purescript$python$red$ruby$rust$scaly$swift$terraform$vlang$vagrant$zig)
# (\n[|](bold green) $nix_shell$conda$docker_context$package$cmake$kubernetes$env_var)
# (\n[|](bold green)$aws$gcloud$openstack)
# [└─](bold green) $character
# '';
character = { character = rec {
success_symbol = "[](bold purple)"; success_symbol = "[](bold purple)";
error_symbol = success_symbol;
vicmd_symbol = "[](bold purple)"; vicmd_symbol = "[](bold purple)";
}; };
# conda.symbol = " "; aws.symbol = " ";
# docker.symbol = " "; conda.symbol = " ";
# haskell.symbol = " "; dart.symbol = " ";
# hg_branch.symbol = " "; docker_context.symbol = " ";
# java.symbol = " "; elixir.symbol = " ";
# package.symbol = " "; elm.symbol = " ";
# python.symbol = " "; golang.symbol = " ";
hg_branch.symbol = " ";
java.symbol = " ";
julia.symbol = " ";
memory_usage.symbol = " ";
nim.symbol = " ";
package.symbol = " ";
perl.symbol = " ";
php.symbol = " ";
python.symbol = " ";
ruby.symbol = " ";
rust.symbol = " ";
scala.symbol = " ";
swift.symbol = " ";
directory = { directory = {
style = "cyan"; style = "cyan";
read_only = " 🔒"; read_only = " ";
format = "[$read_only]($read_only_style)[$path]($style)";
}; };
git_branch = { git_branch = {
format = "[$symbol$branch]($style) "; format = "[$symbol$branch]($style)";
symbol = " ";
style = "bold dimmed white"; style = "bold dimmed white";
symbol = " ";
}; };
git_status = { git_status = {
format = "([$all_status$ahead_behind]($style) )"; format = "([$all_status$ahead_behind]($style))";
conflicted = ""; conflicted = "";
ahead = "$${count} "; ahead = "$${count} ";
behind = "$${count}"; behind = "$${count}";
@ -56,59 +80,35 @@
}; };
nix_shell = { nix_shell = {
format = "[$symbol$state]($style) "; format = "[$symbol$state]($style)";
symbol = " ";
pure_msg = "λ"; pure_msg = "λ";
impure_msg = ""; impure_msg = "";
symbol = " ";
}; };
status = { username = {
format = "[$user]($style)";
show_always = true;
};
hostname = {
ssh_only = false;
format = "[$hostname]($style)";
trim_at = "";
};
shlvl = {
disabled = false; disabled = false;
format = "[$symbol$shlvl]($style)";
symbol = " ";
}; };
# aws.disabled = true; shell = {
# battery.disabled = true; disabled = false;
# cmake.disabled = true; format = "$indicator";
# crystal.disabled = true; };
# dart.disabled = true;
# deno.disabled = true;
# dotnet.disabled = true;
# elixer.disabled = true;
# elm.disabled = true;
# erlang.disabled = true;
# gcloud.disabled = true;
# goland.disabled = true;
# helm.disabled = true;
# julia.disabled = true;
# kotlin.disabled = true;
# kubernetes.disabled = true;
# memory_usage.disabled = true;
# hg_branch.disabled = true;
# nim.disabled = true;
# nodejs.disabled = true;
# ocaml.disabled = true;
# openstack.disabled = true;
# prompt.disabled = false;
# character.disabled = false;
# cmd_duration.disabled = false;
# conda.disabled = false;
# directory.disabled = false;
# docker.disabled = false;
# env_var.disabled = false;
# git_branch.disabled = false;
# git_commit.disabled = false;
# git_state.disabled = false;
# git_metrics.disabled = false;
# git_status.disabled = false;
# hostname.disabled = false;
# jobs.disabled = false;
# line_break.disabled = false;
# nix_shell.disabled = false;
# java.disabled = false;
# lua.disabled = false;
status.disabled = false;
}; };
}; };
} }