-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
33 lines (26 loc) · 725 Bytes
/
.bashrc
File metadata and controls
33 lines (26 loc) · 725 Bytes
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
# ~/.bashrc
[[ $- = *i* ]] || return
shopt -s autocd cdspell dirspell extglob globstar no_empty_cmd_completion
shopt -s cmdhist histappend histverify
stty -ixon
set -o notify
# history
HISTFILE="$HOME/.cache/bash/bash_history"
HISTIGNORE="&:ls:exit:reset:clear"
HISTCONTROL="ignoreboth:erasedups"
HISTSIZE=10000
HISTFILESIZE=20000
# bash completion
if [[ -r "/usr/share/bash-completion/bash_completion" ]]; then
. "/usr/share/bash-completion/bash_completion"
fi
# configs
for f in ~/.config/bash/{*.bash,*.sh}; do
if [[ -r "$f" ]]; then
. "$f"
fi
done
unset f
# prompt
PS1="\[\e[1;30m\][\[\e[0;91m\]\u\[\e[30m\]@\[\e[0;31m\]\h\$(_vcs_info) \
\[\e[0;93m\]\w\[\e[1;30m\]]\n\[\e[0;34m\] \$\[\e[0m\] "