mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-05 19:02:24 +00:00
starship
This commit is contained in:
parent
53ed90b43d
commit
fedba574a5
2 changed files with 252 additions and 1 deletions
243
starship/.config/starship.toml
Normal file
243
starship/.config/starship.toml
Normal file
|
@ -0,0 +1,243 @@
|
|||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
add_newline = false
|
||||
|
||||
format = """
|
||||
╭─$character─[leon](bright-cyan) in $directory\
|
||||
$git_branch\
|
||||
$git_state\
|
||||
$git_status\
|
||||
$package\
|
||||
$python\
|
||||
$jobs\
|
||||
$status\
|
||||
\n╰─λ """
|
||||
|
||||
#$aws\
|
||||
[directory]
|
||||
truncate_to_repo = false
|
||||
truncation_symbol = '…/'
|
||||
format='[$path](bright-green) '
|
||||
|
||||
[python]
|
||||
format = '\[[${pyenv_prefix}(${version})(\($virtualenv\))]($style)\]'
|
||||
|
||||
[git_branch]
|
||||
ignore_branches = ["main", "master"]
|
||||
format = '\([$branch](bright-cyan)\) '
|
||||
|
||||
[git_state]
|
||||
rebase="REBASING"
|
||||
format = '\([$state( $progress_current/$progress_total)]($style)\) '
|
||||
|
||||
[git_status]
|
||||
format = '([\[$all_status$ahead_behind\]]($style))'
|
||||
style = "bright-blue"
|
||||
|
||||
[package]
|
||||
format = '\[[$symbol$version]($style)\]'
|
||||
disabled = true
|
||||
|
||||
|
||||
|
||||
#[git_metrics]
|
||||
#disabled = false
|
||||
#format = '([+$added]($added_style) )([-$deleted]($deleted_style) )'
|
||||
|
||||
[character]
|
||||
format = "$symbol"
|
||||
success_symbol = "─"
|
||||
error_symbol = "─"
|
||||
vicmd_symbol = "N"
|
||||
vicmd_replace_symbol = "R"
|
||||
vicmd_visual_symbol = "V"
|
||||
|
||||
[status]
|
||||
disabled = false
|
||||
format = ' [$symbol $status]($style)'
|
||||
style = "red"
|
||||
symbol = 'REEEEEEE'
|
||||
|
||||
|
||||
|
||||
|
||||
[aws]
|
||||
format = '\[[($profile)(\($region\))(\[$duration\])]($style)\]'
|
||||
|
||||
[bun]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[c]
|
||||
format = '\[[$symbol($version(-$name))]($style)\]'
|
||||
|
||||
[cmake]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[cmd_duration]
|
||||
format = '\[[⏱ $duration]($style)\]'
|
||||
|
||||
[cobol]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[conda]
|
||||
format = '\[[$symbol$environment]($style)\]'
|
||||
|
||||
[crystal]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[daml]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[dart]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[deno]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[docker_context]
|
||||
format = '\[[$symbol$context]($style)\]'
|
||||
|
||||
[dotnet]
|
||||
format = '\[[$symbol($version)(🎯 $tfm)]($style)\]'
|
||||
|
||||
[elixir]
|
||||
format = '\[[$symbol($version \(OTP $otp_version\))]($style)\]'
|
||||
|
||||
[elm]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[erlang]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[fennel]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[fossil_branch]
|
||||
format = '\[[$symbol$branch]($style)\]'
|
||||
|
||||
[gcloud]
|
||||
format = '\[[$symbol$account(@$domain)(\($region\))]($style)\]'
|
||||
|
||||
|
||||
[golang]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[gradle]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[guix_shell]
|
||||
format = '\[[$symbol]($style)\]'
|
||||
|
||||
[haskell]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[haxe]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[helm]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[hg_branch]
|
||||
format = '\[[$symbol$branch]($style)\]'
|
||||
|
||||
[java]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[julia]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[kotlin]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[kubernetes]
|
||||
format = '\[[$symbol$context( \($namespace\))]($style)\]'
|
||||
|
||||
[lua]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[memory_usage]
|
||||
format = '\[$symbol[$ram( | $swap)]($style)\]'
|
||||
|
||||
[meson]
|
||||
format = '\[[$symbol$project]($style)\]'
|
||||
|
||||
[nim]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[nix_shell]
|
||||
format = '\[[$symbol$state( \($name\))]($style)\]'
|
||||
|
||||
[nodejs]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[ocaml]
|
||||
format = '\[[$symbol($version)(\($switch_indicator$switch_name\))]($style)\]'
|
||||
|
||||
[opa]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[openstack]
|
||||
format = '\[[$symbol$cloud(\($project\))]($style)\]'
|
||||
|
||||
[os]
|
||||
format = '\[[$symbol]($style)\]'
|
||||
|
||||
[perl]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[php]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[pijul_channel]
|
||||
format = '\[[$symbol$channel]($style)\]'
|
||||
|
||||
[pulumi]
|
||||
format = '\[[$symbol$stack]($style)\]'
|
||||
|
||||
[purescript]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
|
||||
[raku]
|
||||
format = '\[[$symbol($version-$vm_version)]($style)\]'
|
||||
|
||||
[red]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[ruby]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[rust]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[scala]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[spack]
|
||||
format = '\[[$symbol$environment]($style)\]'
|
||||
|
||||
[sudo]
|
||||
format = '\[[as $symbol]($style)\]'
|
||||
|
||||
[swift]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[terraform]
|
||||
format = '\[[$symbol$workspace]($style)\]'
|
||||
|
||||
[time]
|
||||
format = '\[[$time]($style)\]'
|
||||
|
||||
[username]
|
||||
format = '\[[$user]($style)\]'
|
||||
|
||||
[vagrant]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[vlang]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[zig]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
||||
|
||||
[solidity]
|
||||
format = '\[[$symbol($version)]($style)\]'
|
|
@ -93,7 +93,11 @@ alias ls="exa --icons"
|
|||
alias dots="git -C $HOME/dots-of-war"
|
||||
|
||||
# load prompt
|
||||
source "$ZDOTDIR/prompt.zsh"
|
||||
if command -v starship >/dev/null; then
|
||||
eval "$(starship init zsh)"
|
||||
else
|
||||
source "$ZDOTDIR/prompt.zsh"
|
||||
fi
|
||||
|
||||
if command -v direnv >/dev/null; then
|
||||
eval "$(direnv hook zsh)"
|
||||
|
@ -102,10 +106,14 @@ fi
|
|||
export EDITOR=nvim
|
||||
export VISUAL=nvim
|
||||
|
||||
|
||||
|
||||
export ANDROID_HOME="$HOME/Android/Sdk"
|
||||
export ANDROID_NDK="$HOME/Android/Sdk/ndk/21.4.7075529"
|
||||
export JAVA_HOME="/usr/lib/jvm/java-1.19.0-openjdk-amd64/"
|
||||
|
||||
|
||||
|
||||
if [ -d "$HOME/anaconda3" ]; then
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
|
|
Loading…
Reference in a new issue