-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_config
43 lines (32 loc) · 1.01 KB
/
.bash_config
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
37
38
39
40
41
42
43
# file: .bash_config
# created: 2025-01-19 02:14 AM
# updated: 2025-01-27 06:07 PM
# begin: history
HISTCONTROL=ignoredups:ignorespace:ignoreboth
HISTSIZE=100000
HISTFILESIZE=2000000
# end: history
# begin: shell options
# append to history file - don't overwrite it
shopt -s histappend
# check window size after each command, and if
# necessary update the values of LINES and COLUMNS.
shopt -s checkwinsize
# pattern "**" used in a pathname expansion context
# will match all files and zero or more directories
# and subdirectories
shopt -s globstar
# end: shell options
# colored output that support it
tput setaf 1 >&/dev/null
# enable bash completion
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
# make less more friendly for non-text input files
# see: man lesspipe
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh /usr/bin/lesspipe)"