2022-06-28 08:24:57 +00:00
|
|
|
#!/usr/bin/env bash
|
2019-03-15 13:40:03 +00:00
|
|
|
#
|
|
|
|
# ~/.bashrc
|
|
|
|
#
|
2020-05-19 15:34:28 +00:00
|
|
|
# shellcheck disable=SC1090
|
|
|
|
|
|
|
|
CONFDIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
2019-03-15 13:40:03 +00:00
|
|
|
|
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
2020-05-19 15:34:28 +00:00
|
|
|
[ -f "$CONFDIR/sh/alias" ] && source "$CONFDIR/sh/alias"
|
|
|
|
# load additional aliases
|
|
|
|
if [ -d "$CONFDIR/sh/alias.d" ]; then
|
2023-12-30 20:19:07 +00:00
|
|
|
for _alias in "$CONFDIR/sh/alias.d"/*.sh; do
|
|
|
|
. "$_alias"
|
|
|
|
done
|
|
|
|
unset _alias
|
2019-03-15 13:40:03 +00:00
|
|
|
fi
|
2021-07-07 08:24:04 +00:00
|
|
|
if [ -d "$CONFDIR/bash/alias.d" ]; then
|
2023-12-30 20:19:07 +00:00
|
|
|
for _alias in "$CONFDIR/bash/alias.d"/*.sh; do
|
|
|
|
. "$_alias"
|
|
|
|
done
|
|
|
|
unset _alias
|
2021-07-07 08:24:04 +00:00
|
|
|
fi
|
|
|
|
|
2019-03-15 13:40:03 +00:00
|
|
|
alias ls='ls --color=auto'
|
2023-12-30 20:19:07 +00:00
|
|
|
|
|
|
|
eval "$(starship init bash)"
|
|
|
|
eval "$(zoxide init bash)"
|
|
|
|
|
|
|
|
set -o vi
|
|
|
|
stty time 0
|
|
|
|
bind 'set keyseq-timeout 1'
|