dotfiles/terminal/.bashrc
Marty Oehme 546195ad56
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).
2023-12-30 21:33:16 +01:00

34 lines
652 B
Bash

#!/usr/bin/env bash
#
# ~/.bashrc
#
# shellcheck disable=SC1090
CONFDIR="${XDG_CONFIG_HOME:-$HOME/.config}"
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
[ -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
fi
if [ -d "$CONFDIR/bash/alias.d" ]; then
for _alias in "$CONFDIR/bash/alias.d"/*.sh; do
. "$_alias"
done
unset _alias
fi
alias ls='ls --color=auto'
eval "$(starship init bash)"
eval "$(zoxide init bash)"
set -o vi
stty time 0
bind 'set keyseq-timeout 1'