forked from alrra/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_options
executable file
·68 lines (37 loc) · 1.77 KB
/
bash_options
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
# Bash options.
# https://www.gnu.org/software/bash/manual/bashref.html#The-Shopt-Builtin
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Enable `vi` editing mode.
# https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Readline-vi-Mode
set -o vi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Automatically prepend `cd` to directory names.
shopt -s autocd
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Autocorrect typos in path names when using the `cd` command.
shopt -s cdspell
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Check the window size after each command and, if necessary, update
# the values of `LINES` and `COLUMNS`.
shopt -s checkwinsize
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Save all lines of a multiple-line command in the same history entry.
shopt -s cmdhist
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Include filenames beginning with a "." in the filename expansion.
shopt -s dotglob
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Use extended pattern matching features.
shopt -s extglob
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Append to the history file rather then overwriting it.
shopt -s histappend
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Do not attempt to search the PATH for possible completions when
# completion is attempted on an empty line.
shopt -s no_empty_cmd_completion
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Match filenames in a case-insensitive fashion when performing
# filename expansion.
shopt -s nocaseglob