summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-11-10 17:07:33 +0200
committerLars Wirzenius <liw@liw.fi>2021-11-10 17:07:33 +0200
commit1d1b79aa33bc0980c3ea654b4304a59bbbad6e03 (patch)
tree4588a0957c860d1ac4692c4f0ba4942ccc366195 /bashrc
parent91d6083059989e6ff94be9fac668c7758bda1f44 (diff)
downloadliw-dot-files-1d1b79aa33bc0980c3ea654b4304a59bbbad6e03.tar.gz
bashrc: use starship for prompt if available
Sponsored-by: author
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index ec4078d..73802af 100644
--- a/bashrc
+++ b/bashrc
@@ -170,6 +170,7 @@ export LC_COLLATE=fi_FI.UTF-8
export ANSIBLE_ROLES_PATH="$HOME/code/debian-ansible/roles:$HOME/pers/debian-ansible/roles"
export ANSIBLE_STDOUT_CALLBACK=yaml
export PYTHONDONTWRITEBYTECODE=1
+export STARSHIP_CONFIG=~/.config/starship/config.toml
if [ -e "$HOME/tmp/cargo" ]; then
export CARGO_TARGET_DIR="$HOME/tmp/cargo"
@@ -183,3 +184,7 @@ set +H
if [ -n "$PS1" ]; then
bind -r ''
fi
+
+if command -v starship > /dev/null; then
+ eval "$(starship init bash)"
+fi