Marty Oehme
334f3032e8
fasd is unmaintained and slower than zoxide. The transferral was painless. I imported my old database and can continue as before. It does not care about files but that is completely fine for me. Same `z` invocation as before. Has the 'interactive' mode on `zi` which is also completely fine.
29 lines
621 B
Bash
29 lines
621 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
|
|
|
|
eval "$(zoxide init bash)"
|
|
alias ls='ls --color=auto'
|
|
PS1='[\u@\h \W]\$ '
|