40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
#!/bin/bash
|
|
|
|
# Blake's bashrc
|
|
|
|
# ZSH supremacy
|
|
|
|
# 99.99% of this is the default bashrc for manjaro, I just liked it so I took
|
|
# it, and I don't use bash enough to care. The main job of this is to load my
|
|
# basic shell configuration, which works in any POSIX shell.
|
|
|
|
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
LAUNCH_ZSH="${LAUNCH_ZSH:-false}"
|
|
. ~/.config/shell/plugins
|
|
|
|
# Just in case
|
|
export SHELL_CONFIG_DIR="${SHELL_CONFIG_DIR:-"${XDG_CONFIG_HOME:-"$HOME/.config"}/shell"}"
|
|
|
|
# Source standard shell configuration
|
|
[ -f "$SHELL_CONFIG_DIR/shrc" ] && source "$SHELL_CONFIG_DIR/shrc"
|
|
|
|
. /etc/bash.bashrc
|
|
. ~/.bashrc.bak
|
|
|
|
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
|
|
|
|
unset use_color safe_term match_lhs sh
|
|
|
|
# Bash won't get SIGWINCH if another process is in the foreground.
|
|
# Enable checkwinsize so that bash will check the terminal size when
|
|
# it regains control. #65623
|
|
# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
|
|
shopt -s checkwinsize
|
|
shopt -s expand_aliases
|
|
shopt -s histappend
|
|
|
|
complete -cf sudo
|
|
|
|
# vim:fdm=marker:fmr=>>>,<<<:et:ft=bash:sw=3:ts=3
|