trunk
Last change
on this file since 22a2ffd was
e024caf,
checked in by mitty <mitty@…>, 12 years ago
|
- add alias for screen
- Run screen in UTF-8 mode.
- attempts to resume the youngest detached screen session or starts new session
git-svn-id: https://lab.mitty.jp/svn/lab/trunk@169 7d2118f6-f56c-43e7-95a2-4bb3031d96e7
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[46dc3f4] | 1 | # enable programmable completion features (you don't need to enable |
---|
| 2 | # this, if it's already enabled in /etc/bash.bashrc and /etc/profile |
---|
| 3 | # sources /etc/bash.bashrc). |
---|
| 4 | if [ -f /etc/bash_completion ]; then |
---|
| 5 | . /etc/bash_completion |
---|
| 6 | fi |
---|
[e5094b1] | 7 | |
---|
| 8 | umask 022 # create new file with '644' |
---|
| 9 | ulimit -c 0 # no dump core |
---|
| 10 | export PAGER=less |
---|
[b949a0f] | 11 | export LESS='-FRX -i -P ?f%f:(stdin). ?lb%lb?L/%L.. [?eEOF:?pb%pb\%..]' |
---|
[e5094b1] | 12 | |
---|
| 13 | HISTSIZE=50000 |
---|
| 14 | HISTFILESIZE=50000 |
---|
| 15 | |
---|
| 16 | set -o notify # notify end of background job immediately |
---|
| 17 | |
---|
| 18 | shopt -s histappend # append command history instead of overwrite |
---|
| 19 | shopt -s checkhash # check always PATH hash table |
---|
| 20 | shopt -s cmdhist # save multi lines command to one line |
---|
| 21 | shopt -s no_empty_cmd_completion # no complementation with no input |
---|
| 22 | shopt -s histverify # check command history before execute |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | # view last 30 history or search from last 1000 history |
---|
| 26 | function i { |
---|
| 27 | if [ "$1" ]; then history 1000 | grep "$@"; else history 30; fi |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | # view last 30 history or search from all history |
---|
| 31 | function I { |
---|
| 32 | if [ "$1" ]; then history | grep "$@"; else history 30; fi |
---|
| 33 | } |
---|
| 34 | |
---|
[b3bc7ca] | 35 | if [ -f $BASH_COMPLETION_DIR/git -o -f $BASH_COMPLETION_COMPAT_DIR/git ]; then |
---|
[b949a0f] | 36 | export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1)\$ ' |
---|
| 37 | else |
---|
| 38 | export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' |
---|
| 39 | fi |
---|
| 40 | |
---|
[4c27517] | 41 | function svnst { |
---|
| 42 | svn st $@ | grep "^[^?]" |
---|
| 43 | } |
---|
| 44 | |
---|
[e5094b1] | 45 | alias vi='vim' |
---|
| 46 | alias sudo='sudo -H ' |
---|
[d1c9ece] | 47 | alias rm='rm -v' |
---|
[e024caf] | 48 | alias screen='screen -U -R' |
---|
Note: See
TracBrowser
for help on using the repository browser.