Use starship for zsh prompt

This commit is contained in:
agryphus 2023-12-05 22:07:56 -05:00
parent 540de6cace
commit cf56b8dde8
4 changed files with 200 additions and 138 deletions

15
.local/bin/entrs Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env zsh
accent="$ACCENT_COLOR"
if [ -z "$accent" ]; then
accent=blue
fi
loc="$HOME/.config"
echo "$loc/starship.def.toml" | entr sh -c "
rm $loc/starship.toml
sed 's/\${ACCENT_COLOR}/$accent/g' $loc/starship.def.toml > $loc/starship.toml
notify-send 'Updated starship.toml'
"