-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
36 lines (28 loc) · 998 Bytes
/
.bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
export VISUAL='vim'
export EDITOR='vim'
export SUDO_EDITOR='vim'
mkdir -p "${XDG_CACHE_HOME}/bash"
export HISTFILE="${XDG_CACHE_HOME}/bash/history"
export HISTSIZE=1000
export HISTFILESIZE=2000
export HISTCONTROL=ignoreboth
[[ -d "${HOME}/bin" ]] && PATH="${PATH}:${HOME}/bin"
[[ -d "${HOME}/.bin" ]] && PATH="${PATH}:${HOME}/.bin"
[[ -d "${HOME}/.local/bin" ]] && PATH="${PATH}:${HOME}/.local/bin"
[[ -d "${HOME}/.meteor" ]] && PATH="${PATH}:${HOME}/.meteor"
export PATH
shopt -s histappend autocd checkwinsize
source "${HOME}/.bash_aliases"
source "${XDG_CONFIG_HOME}/bash/bat.bashrc"
source "${XDG_CONFIG_HOME}/bash/pacman.bashrc"
source "${XDG_CONFIG_HOME}/bash/prompt.bashrc"
# Use bash-completion, if available
if ! shopt -oq posix; then
if [[ -f /usr/share/bash-completion/bash_completion ]] ; then
source /usr/share/bash-completion/bash_completion
elif [[ -f /etc/bash_completion ]] ; then
source /etc/bash_completion
fi
fi
# vim: ft=bash