changeset 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 06637c6cdc90
files bash inputrc
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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\]]\$ '
 
--- 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