-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.bashrc
More file actions
46 lines (31 loc) · 1.32 KB
/
Copy path.bashrc
File metadata and controls
46 lines (31 loc) · 1.32 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
44
45
46
#===========
# .bashrc
#===========
# Bash completion
#-----------------
# Use bash-completion, if available
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
. /usr/share/bash-completion/bash_completion
shopt -s nocaseglob; # Case-insensitive globbing (used in pathname expansion)
shopt -s cdspell; # Autocorrect typos in path names when using `cd`
# Enable some Bash 4 features when possible:
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
# * Recursive globbing, e.g. `echo **/*.txt`
for option in autocd globstar; do
shopt -s "$option" 2> /dev/null;
done;
# Bash history configs
#---------------------
export HISTCONTROL=erasedups # erase duplicates in history file
export HISTSIZE='32768'; # Increase Bash history size (stored in-memory) during session
export HISTFILESIZE="${HISTSIZE}"; # Increase Bash history size (stored in history file)
export HISTCONTROL='ignoreboth'; # Omit duplicates and commands that begin with a space from history.
shopt -s histappend # when a shell session exits, append history to .bash_history
# Bash default editor
#-------------------
export EDITOR=/usr/bin/vim
# FASD config
#-----------------
# https://github.com/clvv/fasd
# command line productivity booster. Quick access to frequently access files and directories
eval "$(fasd --init auto)"