terminal: Switch to starship prompt

Switched terminal environments (bash,zsh,nushell) to starship
prompt (from pure-prompt/no prompt). Is mimicking the pure-
prompt however, so no big change visible. Needs additional
package on the system, which is added to the packages.

Some remaining issues with nushell (vi prompt indicator).
This commit is contained in:
Marty Oehme 2023-12-30 21:19:07 +01:00
parent 8e3ef257d3
commit 546195ad56
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
5 changed files with 891 additions and 20 deletions

View file

@ -12,18 +12,23 @@ CONFDIR="${XDG_CONFIG_HOME:-$HOME/.config}"
[ -f "$CONFDIR/sh/alias" ] && source "$CONFDIR/sh/alias"
# load additional aliases
if [ -d "$CONFDIR/sh/alias.d" ]; then
for _alias in "$CONFDIR/sh/alias.d"/*.sh; do
. "$_alias"
done
unset _alias
for _alias in "$CONFDIR/sh/alias.d"/*.sh; do
. "$_alias"
done
unset _alias
fi
if [ -d "$CONFDIR/bash/alias.d" ]; then
for _alias in "$CONFDIR/bash/alias.d"/*.sh; do
. "$_alias"
done
unset _alias
for _alias in "$CONFDIR/bash/alias.d"/*.sh; do
. "$_alias"
done
unset _alias
fi
eval "$(zoxide init bash)"
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
eval "$(starship init bash)"
eval "$(zoxide init bash)"
set -o vi
stty time 0
bind 'set keyseq-timeout 1'