-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_settings
45 lines (31 loc) · 1.16 KB
/
.bash_settings
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
#!/usr/bin/env bash
# Prepend cd to directory names automatically
shopt -s autocd
# Correct spelling errors in arguments supplied to cd
shopt -s cdspell
# Checks the window size after each command
shopt -s checkwinsize
# Correct spelling errors during tab-completion
shopt -s dirspell
# Turn on recursive globbing (enables ** to recurse all directories)
shopt -s globstar
# Match filenames in a case-insensitive fashion when performing filename expansion
shopt -s nocaseglob
# Define the base directory for cd command
CDPATH=".:~/projects"
# Don't check mail when opening terminal
unset MAILCHECK
# Save all lines of a multiple-line command in the same history entry
shopt -s cmdhist
# Append to the history file, don't overwrite it
shopt -s histappend
# If the cmdhist option is enabled, multi-line commands are saved to the
# history with embedded newlines rather than using semicolon separators
shopt -s lithist
# Huge history. Doesn't appear to slow things down, so why not?
export HISTSIZE=500000
export HISTFILESIZE=100000
# Avoid duplicate entries
export HISTCONTROL=ignoreboth
# Don't record some commands
export HISTIGNORE="&:[ ]*:exit:pwd:bg:fg:history:clear"