bashrc/.bashrc

26 lines
608 B
Bash

#!/bin/bash
#
# ~/.bashrc
#
# Thurstylark
#
# Reference: https://wiki.thurstylark.com/Bashrc.html
### GENERAL CONFIG ###
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# If a directory is given without any command, CD into it.
shopt -s autocd
# Enable pkgfile to automatically search for packages if pkgfile is installed
[[ -s /usr/share/doc/pkgfile/command-not-found.bash ]] && source /usr/share/doc/pkgfile/command-not-found.bash
### OTHER CONFIG ###
# Source all *.sh files in ~/.bashrc.d/
# shellcheck source=/dev/null
for f in ~/.bashrc.d/*.sh; do source "$f"; done