Changeset e5094b1 in lab.git
- Timestamp:
- Nov 17, 2009 10:43:01 AM (15 years ago)
- Branches:
- master, trunk
- Children:
- 554504d
- Parents:
- 766bb6a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
.bashrc
r46dc3f4 re5094b1 92 92 . /etc/bash_completion 93 93 fi 94 95 umask 022 # create new file with '644' 96 ulimit -c 0 # no dump core 97 export PAGER=less 98 export LESS='-X -i -P ?f%f:(stdin). ?lb%lb?L/%L.. [?eEOF:?pb%pb\%..]' 99 100 HISTSIZE=50000 101 HISTFILESIZE=50000 102 103 set -o notify # notify end of background job immediately 104 105 shopt -s histappend # append command history instead of overwrite 106 shopt -s checkhash # check always PATH hash table 107 shopt -s cmdhist # save multi lines command to one line 108 shopt -s no_empty_cmd_completion # no complementation with no input 109 shopt -s histverify # check command history before execute 110 111 112 # view last 30 history or search from last 1000 history 113 function i { 114 if [ "$1" ]; then history 1000 | grep "$@"; else history 30; fi 115 } 116 117 # view last 30 history or search from all history 118 function I { 119 if [ "$1" ]; then history | grep "$@"; else history 30; fi 120 } 121 122 alias vi='vim' 123 alias sudo='sudo -H '
Note: See TracChangeset
for help on using the changeset viewer.