Files
dotfiles/bash/.bashrc.omb
T
poprhythm a839cb0d87 Add mc config, lazygit/nerd-font installers, fzf/zoxide bash integration
- New mc package: seasons-winter16M skin (fixes washed-out file colors
  under the old default skin), arrow-key panel navigation, and
  Backspace bound as an alt key for CdParent (Double Commander-style
  parent-dir navigation).
- setup.sh: install_lazygit and install_nerd_font helpers, since
  neither ships as an apt/PPA package on this distro anymore.
- bash/.bashrc.omb: wire up fzf key-bindings and zoxide, drop the now-
  redundant bashmarks plugin, enable globstar, and widen history.
2026-08-03 21:41:22 -04:00

73 lines
1.4 KiB
Plaintext

# oh-my-bash configuration
if [ -d "$HOME/.oh-my-bash" ]; then
export OSH="$HOME/.oh-my-bash"
OSH_THEME="agnoster"
OMB_USE_SUDO=true
completions=(
git
composer
ssh
)
aliases=(
general
)
plugins=(
git
)
source "$OSH/oh-my-bash.sh"
fi
# PATH
export PATH="$HOME/.local/bin:$PATH"
# History
HISTSIZE=100000
HISTFILESIZE=200000
HISTTIMEFORMAT="%F %T "
# Recursive globbing with **
shopt -s globstar
# fzf — fuzzy Ctrl+R history / Ctrl+T file search
if command -v fzf &>/dev/null; then
for f in /usr/share/doc/fzf/examples/key-bindings.bash /usr/share/fzf/key-bindings.bash; do
[ -f "$f" ] && source "$f" && break
done
fi
# zoxide — frecency-based `cd` replacement (use `z <dir>`)
if command -v zoxide &>/dev/null; then
eval "$(zoxide init bash)"
fi
# Color support
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# ls — use eza if available, fallback to ls
if command -v eza &>/dev/null; then
alias ls='eza -l --color=always --group-directories-first'
fi
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# nvim alias
if command -v nvim &>/dev/null; then
alias vim=nvim
fi
# Run fastfetch on terminal startup
if command -v fastfetch &>/dev/null; then
fastfetch
fi