-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_options
45 lines (30 loc) · 1.12 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
#!/bin/bash
# Shell Options
# http://ss64.com/bash/shopt.html
if [ -n "$BASH" ]; then
# If command is a valid directory, cd into it
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
# Other not-shell options, that fit well in here
# Disable software flow control (terminal hanging after pressing Ctrl+S, can be recovered using Ctrl+Q)
# Context: https://unix.stackexchange.com/a/72092/95310
stty -ixon
fi