在csh系统中esc+backspace组合键会按照"/"作为区分删除terminal中的字符
但是在bash系统中是按照单词来删除
比如:
ls test/dir1_dir2
在csh系统中按组合键,会变成ls test/
而在bash系统中则是 ls test/dir1
这个设置非常不方便,因为很多文件名就是以_或者-作为标签的
使用bind重定义:
bind "set bind-tty-special-chars off"
bind '"\e\C-?":unix-filename-rubout'
注意单引号和双引号都必须一模一样