summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-02-28 17:36:56 +0100
committerDaniel Weipert <code@drogueronin.de>2023-10-30 09:52:23 +0100
commit22c4a31a44efa93d02636a77817f6637d273007a (patch)
treec1e73afe6c49be597bf37c27672e16d8fab1511c
parente57d8077cca60fc32ead0277f4807d90a96cb715 (diff)
[zshrc] add starship
-rw-r--r--.config/starship.toml42
-rw-r--r--.zshrc4
2 files changed, 44 insertions, 2 deletions
diff --git a/.config/starship.toml b/.config/starship.toml
new file mode 100644
index 0000000..ad0b0d2
--- /dev/null
+++ b/.config/starship.toml
@@ -0,0 +1,42 @@
+scan_timeout = 5
+
+format = """
+($all
+)\
+$username@$hostname: $directory $fill $time
+$character
+"""
+right_format = "$status( $cmd_duration)"
+
+[cmd_duration]
+format = 'took [$duration]($style)'
+
+[directory]
+truncation_length = 16
+truncate_to_repo = false
+
+[fill]
+symbol = ' '
+
+[hostname]
+ssh_only = false
+format = '[$ssh_symbol$hostname]($style)'
+
+[nix_shell]
+symbol = '❄️ '
+
+[status]
+disabled = false
+format = '[$symbol$status]($style)'
+
+[time]
+disabled = false
+format = '[$time]($style)'
+
+[username]
+disabled = false
+show_always = true
+format = '[$user]($style)'
+
+[line_break]
+disabled = true
diff --git a/.zshrc b/.zshrc
index 01e4263..180fecd 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,7 +1,5 @@
export ZSH="$HOME/.config/zsh/ohmyzsh"
-ZSH_THEME="random"
-
CASE_SENSITIVE="true"
HYPHEN_INSENSITIVE="true"
@@ -24,3 +22,5 @@ export NNN_PLUG='n:nuke;p:addtoplaylist'
export GRIM_DEFAULT_DIR=~/Images/Screenshots
export PATH=$PATH:~/bin
+
+eval "$(starship init zsh)"