2014年7月23日 星期三

bash bind function key

As title

bind '"\eOP":"echo F1\n"'
bind '"\eOQ":"echo F2\n"'
bind '"\eOR":"echo F3\n"'
bind '"\eOS":"echo F4\n"'
bind '"\e[15~":"echo F5\n"'
bind '"\e[17~":"echo F6\n"'
bind '"\e[18~":"echo F7\n"'
bind '"\e[19~":"echo F8\n"'
bind '"\e[20~":"echo F9\n"'
bind '"\e[21~":"echo F10\n"'
bind '"\e[23~":"echo F11\n"'
bind '"\e[24~":"echo F12\n"'
bind '"\e[25~":"echo F13\n"'
bind '"\e[26~":"echo F14\n"'
bind '"\e[28~":"echo F15\n"'
bind '"\e[29~":"echo F16\n"'
bind '"\e[31~":"echo F17\n"'
bind '"\e[32~":"echo F18\n"'
bind '"\e[33~":"echo F19\n"'
bind '"\e[34~":"echo F20\n"'

大概就是這樣啦,把以上這塊複製到.bashrc裡面就可以了,按下去會發生有趣的事情喔

沒有留言:

張貼留言