replaced powerline with oh-my-posh, new deps and alias fixes

This commit is contained in:
2024-06-11 22:59:12 +02:00
parent ec10ac7281
commit a715528931
15 changed files with 113 additions and 35 deletions

View File

@@ -1,10 +1,4 @@
#!/bin/bash
# if powerline-shell is available use it.
function _update_ps1() {
if hash powerline-rs 2>/dev/null; then
PS1="$(powerline-rs --shell bash $?)"
fi
}
# sourceIfExists
function sourceIfExists() {
@@ -19,6 +13,7 @@ source ~/.custom
source ~/.variables
sourceIfExists ~/lib/azure-cli/az.completion
eval "$(thefuck --alias)"
eval "$(oh-my-posh init bash --config ~/.config/poshthemes/mastermindzh.yaml)"
# load keychain with private key
if test -f "$HOME/.ssh/id_ed25519"; then
@@ -40,10 +35,4 @@ if hash dotnet 2>/dev/null; then
export PATH="${PATH}:${DOTNET_ROOT}:~/.dotnet/tools"
fi
PS1='[\u@\h \W]\$ '
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
export PATH=$PATH:/home/mastermindzh/bin