-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions
More file actions
29 lines (27 loc) · 1.54 KB
/
Copy pathoptions
File metadata and controls
29 lines (27 loc) · 1.54 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
#!/usr/bin/env bash
# Shell options
# shopt -s autocd # cd to directory by name, without cd
# shopt -s cdspell # autocorrect directory names
shopt -s checkjobs # warn about background jobs before exiting
shopt -s checkwinsize # track window resizes
shopt -s cmdhist # merge multiline commands in history
# shopt -s dirspell # perform spelling corrections on directory names to match a glob
# shopt -s dotglob # include .files in expansion
shopt -s expand_aliases # expand aliases
shopt -s extglob # enable extended pattern matching
shopt -u failglob # expansion failures will print error messages
shopt -s globstar # enables ** recursive expansion
shopt -s gnu_errfmt # use gnu error format
shopt -s histappend #
shopt -s huponexit # send SIGHUP to all subprocesses when a shell exists
# shopt -s lithist # multi-line commands are saved to the history with embedded newlines rather than using semicolon separators where possible
# shopt -s nocaseglob # matches filenames in a case-insensitive fashion when performing pathname expansion
# shopt -s nocasematch # matches patterns in a case-insensitive fashion when performing matching while executing case or [[ conditional commands
# shopt -u promptvars # if set, prompt strings undergo parameter expansion, command substitution, arithmetic expansion, and quote removal after being expanded using the prompt special sequences.
# shopt -s xpg_echo # the echo-builtin command expands backslash-escape sequences by default
# set -o notify
# set +o errexit
# set -o errtrace
# set -o functrace
# set +o nounset
# set +o pipefail