Add starship - dotfiles - arsenal of config files, ready to be cloned in new (virtual) machines.
HTML git clone git://git.drkhsh.at/dotfiles.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
---
DIR commit 8982747df67170a5e2153cf966dbc19a929d4e60
DIR parent 712a3784d808c0ae7d3a15969dcbba95c0063659
HTML Author: drkhsh <me@drkhsh.at>
Date: Tue, 7 Mar 2023 21:56:52 +0100
Add starship
Diffstat:
A starship/.config/starship.toml | 31 +++++++++++++++++++++++++++++++
D zsh/.config/starship.toml | 32 -------------------------------
M zsh/.zshrc | 1 +
3 files changed, 32 insertions(+), 32 deletions(-)
---
DIR diff --git a/starship/.config/starship.toml b/starship/.config/starship.toml
@@ -0,0 +1,31 @@
+format = """
+$username\
+$hostname\
+$directory\
+$git_branch\
+$git_commit\
+$git_state\
+$git_metrics\
+$git_status\
+$docker_context\
+$env_var\
+$sudo\
+$cmd_duration\
+$line_break\
+$jobs\
+$status\
+$os\
+$container\
+$shell\
+$character"""
+
+[hostname]
+ssh_only = false
+ssh_symbol = '🌐'
+
+[username]
+format = '[$user]($style) @'
+
+[character]
+format = '$symbol$symbol$symbol '
+
DIR diff --git a/zsh/.config/starship.toml b/zsh/.config/starship.toml
@@ -1,32 +0,0 @@
-# Which is equivalent to
-format = """
-$username\
-$hostname\
-$directory\
-$git_branch\
-$git_commit\
-$git_state\
-$git_metrics\
-$git_status\
-$docker_context\
-$env_var\
-$sudo\
-$cmd_duration\
-$line_break\
-$jobs\
-$status\
-$os\
-$container\
-$shell\
-$character"""
-
-[hostname]
-ssh_only = false
-ssh_symbol = '🌐'
-
-[username]
-format = '[$user]($style) @'
-
-[character]
-format = '$symbol$symbol$symbol '
-
DIR diff --git a/zsh/.zshrc b/zsh/.zshrc
@@ -100,6 +100,7 @@ if [[ -f ~/.zshrc.local ]]; then
fi
# █▓▒░ starship prompt
+_qubes && export STARSHIP_CONFIG=/etc/starship.toml # qubes templates
_exists starship && eval "$(starship init zsh)"
# █▓▒░ DRKHSH DRKHSH DRKHSH DRKHSH DRKHSH DRKHSH DRKHSH