# 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 `) 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