From 1d1b79aa33bc0980c3ea654b4304a59bbbad6e03 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 10 Nov 2021 17:07:33 +0200 Subject: bashrc: use starship for prompt if available Sponsored-by: author --- bashrc | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.1