mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2025-08-13 12:47:21 +02:00
replaced powerline with oh-my-posh, new deps and alias fixes
This commit is contained in:
13
bash/.bashrc
13
bash/.bashrc
@@ -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
|
||||
|
Reference in New Issue
Block a user