# HG changeset patch # User Edho Prima Arief # Date 1315540312 -25200 # Node ID 4e44a9c03a3a66080cf52b6964ee4a893ff2bcd7 # Parent 0e8018fb420337036202108878d1066e25177af3 Saner ctrl-w for bash diff -r 0e8018fb4203 -r 4e44a9c03a3a bash --- a/bash Wed Sep 07 10:29:36 2011 +0700 +++ b/bash Fri Sep 09 10:51:52 2011 +0700 @@ -5,6 +5,10 @@ _org_path="${PATH}" export PATH="${HOME}/.ecos_bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" +#ensures slash doesn't get killed when doing ^W +stty werase undef +bind '\C-w':unix-filename-rubout + #PS1='[\u@\h \W]\$ ' PS1='[\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\] \[\e[1;34m\]\W\[\e[0m\]]\$ ' diff -r 0e8018fb4203 -r 4e44a9c03a3a inputrc --- a/inputrc Wed Sep 07 10:29:36 2011 +0700 +++ b/inputrc Fri Sep 09 10:51:52 2011 +0700 @@ -29,5 +29,5 @@ "\eOB": history-search-forward #Misc -"\C-w": backward-kill-word +"\C-w": unix-filename-rubout