summary refs log tree commit diff
path: root/.bashrc
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-08-30 18:29:31 +0200
committerRobert Günzler <r@gnzler.io>2021-08-31 12:41:20 +0200
commitdfeb0a063c1d8e607c4b0904c707c65b230591bd (patch)
treed079d9438d95877aa57f28a22f998c6905baf778 /.bashrc
parent43b8194a90f0232189ff75182d05a70b84a8be5e (diff)
Use starship prompt
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc25
1 files changed, 12 insertions, 13 deletions
diff --git a/.bashrc b/.bashrc
index 11b6c04..67e6167 100644
--- a/.bashrc
+++ b/.bashrc
@@ -37,9 +37,8 @@ if [ -d /usr/libexec/z_lua ]; then
 	eval "$(luajit /usr/libexec/z_lua/z.lua --init bash enhanced once fzf)"
 	# safe_load /usr/libexec/z_lua/czmod/czmod.bash
 fi
-
-# enable navi
-eval "$(navi widget bash)"
+# enable starship
+eval "$(starship init bash)"
 
 # Use keychain to reuse the ssh-agent and gpg-agent between logins
 keychain --agents ssh,gpg -q id_rsa # AF6AB8C8B10436B9F61293632143BD2AAB94BCC4
@@ -48,16 +47,16 @@ safe_load "$HOME/.keychain/$(hostname)-sh-gpg"
 
 # Set prompt
 # export PS1="$(prompt)"
-if ! [[ "${PROMPT_COMMAND:-}" =~ _prompt_hook ]]; then
-	PROMPT_COMMAND="_prompt_hook${PROMPT_COMMAND:+;$PROMPT_COMMAND}"
-fi
-_prompt_hook() {
-	if [ "$?" != 0 ]; then
-		PS1=$(prompt err)
-	else
-		PS1=$(prompt)
-	fi
-}
+# if ! [[ "${PROMPT_COMMAND:-}" =~ _prompt_hook ]]; then
+# 	PROMPT_COMMAND="_prompt_hook${PROMPT_COMMAND:+;$PROMPT_COMMAND}"
+# fi
+# _prompt_hook() {
+# 	if [ "$?" != 0 ]; then
+# 		PS1=$(prompt err)
+# 	else
+# 		PS1=$(prompt)
+# 	fi
+# }
 
 # Alias shell commands
 # alias logout='dbus-send --session --type=method_call --print-reply --dest='