From 22c4a31a44efa93d02636a77817f6637d273007a Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 28 Feb 2023 17:36:56 +0100 Subject: [zshrc] add starship --- .config/starship.toml | 42 ++++++++++++++++++++++++++++++++++++++++++ .zshrc | 4 ++-- 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 .config/starship.toml 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)" -- cgit v1.2.3