10
10
[ " $BASH " ] || shopt (){ return ${shopt_def-0} ; }
11
11
_is_posix (){ shopt -oq posix; }
12
12
13
- # System wide environment variables and startup programs should go into
14
- # /etc/profile. Personal environment variables and startup programs
15
- # should go into ~/.bash_profile. Personal aliases and functions should
16
- # go into ~/.bashrc
17
-
18
- . /etc/profile
19
-
20
- # Provides prompt for non-login shells, specifically shells started
21
- # in the X environment.
22
-
23
- # TODO check case $- in (*i*)
24
- # Make bash append rather than overwrite the history on disk
25
- # Allows user to edit a failed hist exp.
26
- # Allows user to verify the results of hist exp.
27
- shopt -s histappend histreedit histverify
28
- HISTIGNORE=' &:[bf]g:exit'
29
- HISTCONTROL=' ignorespace'
30
-
31
13
# When changing directory small typos can be ignored by bash
32
14
# Chdirs into it if command is a dir
33
15
# Chdirs into $var if var not found
@@ -45,6 +27,24 @@ shopt -s checkhash
45
27
# Winsize
46
28
shopt -s checkwinsize
47
29
30
+ # Provides prompt for non-login shells, specifically shells started
31
+ # in the X environment.
32
+
33
+ # TODO check case $- in (*i*)
34
+ # Make bash append rather than overwrite the history on disk
35
+ # Allows user to edit a failed hist exp.
36
+ # Allows user to verify the results of hist exp.
37
+ shopt -s histappend histreedit histverify
38
+ HISTIGNORE=' &:[bf]g:exit'
39
+ HISTCONTROL=' ignorespace'
40
+
41
+ # System wide environment variables and startup programs should go into
42
+ # /etc/profile. Personal environment variables and startup programs
43
+ # should go into ~/.bash_profile. Personal aliases and functions should
44
+ # go into ~/.bashrc
45
+
46
+ . /etc/profile
47
+
48
48
# Colors
49
49
alias l=' ls -AFlh'
50
50
alias ll=' ls -Flh'
0 commit comments