-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings
More file actions
43 lines (36 loc) · 1.36 KB
/
settings
File metadata and controls
43 lines (36 loc) · 1.36 KB
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
# conditionals
_isxrunning=false
[[ -n "$DISPLAY" ]] && _isxrunning=true
_isroot=false
[[ $UID -eq 0 ]] && _isroot=true
# bash opts
shopt -s cdspell # Correct cd typos
shopt -s checkwinsize # Update windows size on command
shopt -s histappend # Append History instead of overwriting file
shopt -s cmdhist # Bash attempts to save all lines of a multiple-line command in the same history entry
shopt -s expand_aliases
shopt -s extglob # Extended pattern
shopt -s no_empty_cmd_completion # No empty completion
# completion
complete -cf sudo # sudo will not be followed by a filename
if [[ -f /usr/share/bash-completion/bash_completion ]]; then
. /usr/share/bash-completion/bash_completion
fi
# command not found
if [[ -f /usr/share/doc/pkgfile/command-not-found.bash ]]; then
. /usr/share/doc/pkgfile/command-not-found.bash
fi
# add $HOME/bin to path
export PATH=/usr/local/bin:$PATH
if [[ -d "$HOME/bin" ]] ; then
PATH="$HOME/bin:$PATH"
fi
# MVP
export EDITOR="vim"
# make multiple shells share the same history file
export HISTSIZE=1000 # bash history will save N commands
export HISTFILESIZE=${HISTSIZE} # bash will remember N commands
export HISTCONTROL=ignoreboth # ingore duplicates and spaces
export HISTIGNORE='&:ls:ll:la:cd:exit:clear:history'
# Gotta type fast
xset r rate 250 100