Bartib and starship integration

main
Steffen Rademacker 2 years ago
parent 0592da4d0f
commit 73458a747e

@ -8,8 +8,8 @@
255.255.255.255 broadcasthost
::1 localhost
127.0.0.1 youtube.com
127.0.0.1 www.youtube.com
#127.0.0.1 youtube.com
#127.0.0.1 www.youtube.com
127.0.0.1 reddit.com
127.0.0.1 www.reddit.com
127.0.0.1 tagesschau.de

@ -0,0 +1,10 @@
#!/usr/bin/env zsh
#
current=$(bartib current)
lines=$(echo "$current" | wc -l)
if [ "$lines" -gt 1 ]; then
line=$(bartib current | sed -n 3p)
words=(`echo $line | sed 's/ /\n/g'`)
echo "$words[-2]"
fi

@ -6,3 +6,9 @@ min_time = 5_000
[directory]
truncation_length = 6
[custom.bartib]
command = "~/Dotfiles/other/bartib.status.zsh" # shows output of command
when = ""
symbol = ""
style = "bold blue"
format = "[$symbol($output)]($style)"

Loading…
Cancel
Save