diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-11-10 17:07:33 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-11-10 17:07:33 +0200 |
commit | 1d1b79aa33bc0980c3ea654b4304a59bbbad6e03 (patch) | |
tree | 4588a0957c860d1ac4692c4f0ba4942ccc366195 | |
parent | 91d6083059989e6ff94be9fac668c7758bda1f44 (diff) | |
download | liw-dot-files-1d1b79aa33bc0980c3ea654b4304a59bbbad6e03.tar.gz |
bashrc: use starship for prompt if available
Sponsored-by: author
-rw-r--r-- | bashrc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |