fix(bash): fix prompt glitch on long commands

This commit is contained in:
Maciej Jur 2023-07-29 16:49:40 +02:00
parent 0209fcb25d
commit 08d972a587
Signed by: kamov
GPG key ID: 191CBFF5F72ECAFD

View file

@ -13,7 +13,7 @@ parse_git_branch() {
} }
colorize() { colorize() {
echo -e "\e[$1$2\e[m" echo -e "\[\033[1;$1\]$2\[\033[0m\]"
} }
PS1='[' PS1='['
@ -31,7 +31,8 @@ export GPG_TTY=$(tty)
# Configure editor # Configure editor
export VISUAL="$(command -v nvim 2>/dev/null)" export VISUAL="$(command -v nvim 2>/dev/null)"
export EDITOR="$(command -v nvim 2>/dev/null || command -v vim 2>/dev/null || command -v nano)" export EDITOR="$(command -v nvim 2>/dev/null || command -v vim 2>/dev/null || command -v nano)"
alias vim='neovide --maximized --multigrid' [ -x "$(command -v nvim 2> /dev/null)" ] && alias vim='nvim'
[ -x "$(command -v neovide 2> /dev/null)" ] && alias nvim='neovide --maximized --multigrid'
# ghcup (Haskell) # ghcup (Haskell)
[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env" # ghcup-env [ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env" # ghcup-env