Bläddra i källkod

Add starship config for #fishshell

Colin Powell 5 år sedan
förälder
incheckning
43efe86b47
2 ändrade filer med 47 tillägg och 1 borttagningar
  1. 0 1
      fish/.config/fish/config.fish
  2. 47 0
      fish/.config/starship.toml

+ 0 - 1
fish/.config/fish/config.fish

@@ -6,5 +6,4 @@ fzf_key_bindings
 set -gx EDITOR vi
 set -gx XDG_RUNTIME_DIR /run/user/(id -u)
 eval (python -m virtualfish)
-
 starship init fish | source

+ 47 - 0
fish/.config/starship.toml

@@ -0,0 +1,47 @@
+# Don't print a new line at the start of the prompt
+add_newline = false
+
+[hostname]
+ssh_only = false
+disabled = false
+style = "bold green"
+
+[memory_usage]
+show_percentage = true
+show_swap = true
+threshold = -1
+symbol = " "
+style = "bold dimmed green"
+
+[git_branch]
+symbol = "🌱 "
+truncation_length = 8
+truncation_symbol = ""
+
+[git_status]
+conflicted = "🏳"
+ahead = "🏎💨"
+behind = "😰"
+diverged = "😵"
+untracked = "🤷‍"
+stashed = "📦"
+modified = "📝"
+staged.value = "++"
+staged.style = "green"
+staged_count.enabled = true
+staged_count.style = "green"
+renamed = "👅"
+deleted = "🗑"
+
+[battery]
+full_symbol = "🔋"
+charging_symbol = "⚡️"
+discharging_symbol = "💀"
+
+[[battery.display]]
+threshold = 10
+style = "bold red"
+
+[[battery.display]]
+threshold = 40
+style = "bold yellow"