comparison bash @ 106:4e44a9c03a3a

Saner ctrl-w for bash
author Edho Prima Arief <edho@myconan.net>
date Fri, 09 Sep 2011 10:51:52 +0700
parents 0e8018fb4203
children c3e641108696 fd8dbd4bb758
comparison
equal deleted inserted replaced
103:0e8018fb4203 106:4e44a9c03a3a
2 2
3 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before" 3 [ -f "${HOME}/.ecos_bash.before" ] && . "${HOME}/.ecos_bash.before"
4 4
5 _org_path="${PATH}" 5 _org_path="${PATH}"
6 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" 6 export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
7
8 #ensures slash doesn't get killed when doing ^W
9 stty werase undef
10 bind '\C-w':unix-filename-rubout
7 11
8 #PS1='[\u@\h \W]\$ ' 12 #PS1='[\u@\h \W]\$ '
9 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ ' 13 PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ '
10 14
11 export PAGER="less -Rins" 15 export PAGER="less -Rins"