Quote:
Originally Posted by supersubu123
some how i added this line
alias ^E='cd $OLDPWD' but when exectued it says
bash: ./file_name: cannot execute binary file
and Mr.Sibtay i have no idea to write a script for this pls guide me
|
Alright here is the solution. In order to bind keys in bash you need to add entries for those bindings in the /etc/inputrc file. For example the following entry maps CTRL-o to cd $OLDPWD
"\C-o": 'cd $OLDPWD\n'
Similarly the following entry would bind CTRL-l to ls:
"\C-l": 'ls\n'
Hope this helps.