From 2c937133a9f45bf5a4db4f6bbbaf8b0b68695cee Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 18 May 2022 00:30:01 -0500 Subject: [PATCH] update starship and lsd for tty detection --- home/private_dot_config/starship/config.toml | 78 ++++++++++-- home/private_dot_config/starship/plain.toml | 119 +++++++++++++++++++ system/alias.sh | 3 +- 3 files changed, 190 insertions(+), 10 deletions(-) create mode 100644 home/private_dot_config/starship/plain.toml diff --git a/home/private_dot_config/starship/config.toml b/home/private_dot_config/starship/config.toml index 917f931..1755149 100644 --- a/home/private_dot_config/starship/config.toml +++ b/home/private_dot_config/starship/config.toml @@ -2,23 +2,83 @@ format = "[$user]($style) on " [character] -success_symbol = "[❯](bold green)[❯](bold yellow)[❯](bold cyan)" +# success_symbol = "[❯](bold green)[❯](bold yellow)[❯](bold cyan)" +success_symbol = "[⁘](bold green)[⁘](bold yellow)[⁘](bold cyan)" error_symbol = "[✗](bold red) " - +# ⁘ [gcloud] disabled = true -[python] -disabled = true - [rlang] disabled = true -[nodejs] -disabled = true +# nerd font symbols + +[aws] +symbol = " " + +[buf] +symbol = " " + +[c] +symbol = " " + +[conda] +symbol = " " + +[dart] +symbol = " " + +[directory] +read_only = " " + +[docker_context] +symbol = " " + +[elixir] +symbol = " " + +[elm] +symbol = " " + +[git_branch] +symbol = " " [golang] -disabled = true +symbol = " " + +[haskell] +symbol = " " + +[hg_branch] +symbol = " " + +[java] +symbol = " " + +[julia] +symbol = " " + +[memory_usage] +symbol = " " + +[nim] +symbol = " " + +[nix_shell] +symbol = " " + +[nodejs] +symbol = " " [package] -disabled = true +symbol = " " + +[python] +symbol = " " + +[spack] +symbol = "🅢 " + +[rust] +symbol = " " diff --git a/home/private_dot_config/starship/plain.toml b/home/private_dot_config/starship/plain.toml new file mode 100644 index 0000000..b3aa34a --- /dev/null +++ b/home/private_dot_config/starship/plain.toml @@ -0,0 +1,119 @@ +[character] +success_symbol = "[>](bold green)" +error_symbol = "[x](bold red)" +vicmd_symbol = "[<](bold green)" + +[git_commit] +tag_symbol = " tag " + +[git_status] +ahead = ">" +behind = "<" +diverged = "<>" +renamed = "r" +deleted = "x" + +[aws] +symbol = "aws " + +[cobol] +symbol = "cobol " + +[conda] +symbol = "conda " + +[crystal] +symbol = "cr " + +[cmake] +symbol = "cmake " + +[dart] +symbol = "dart " + +[deno] +symbol = "deno " + +[dotnet] +symbol = ".NET " + +[directory] +read_only = " ro" + +[docker_context] +symbol = "docker " + +[elixir] +symbol = "exs " + +[elm] +symbol = "elm " + +[git_branch] +symbol = "git " + +[golang] +symbol = "go " + +[hg_branch] +symbol = "hg " + +[java] +symbol = "java " + +[julia] +symbol = "jl " + +[kotlin] +symbol = "kt " + +[nodejs] +symbol = "nodejs " + +[memory_usage] +symbol = "memory " + +[nim] +symbol = "nim " + +[nix_shell] +symbol = "nix " + +[ocaml] +symbol = "ml " + +[package] +symbol = "pkg " + +[perl] +symbol = "pl " + +[php] +symbol = "php " + +[pulumi] +symbol = "pulumi " + +[purescript] +symbol = "purs " + +[python] +symbol = "py " + +[ruby] +symbol = "rb " + +[rust] +symbol = "rs " + +[scala] +symbol = "scala " + +[sudo] +symbol = "sudo " + +[swift] +symbol = "swift " + +[gcloud] +disabled = true diff --git a/system/alias.sh b/system/alias.sh index caf86f7..19731b3 100644 --- a/system/alias.sh +++ b/system/alias.sh @@ -27,7 +27,8 @@ alias code2="code-insiders" # ls -> lsd | swap ls for ls-deluxe if is-executable lsd; then - alias ls='lsd' + is-tty && alias lsd="lsd --icon never" + alias ls='lsd' alias l='lsd -l' alias la='lsd -a' alias lla='lsd -la'