D1478.fix-rebind-C-x-test1.sh (247B)
1 #!/bin/bash 2 3 # unbind all "C-x ?" 4 for second in e g {A..Z} '\C-'{e,g,r,u,v,x,'?'} '!' '$' '(' ')' '*' '/' '@' '~'; do 5 bind -r '\C-x'"$second" 6 done 7 8 bind -x '"\C-x\C-x":echo XX' 9 bind -r '\C-x\C-x' 10 11 bind -x '"\C-x":echo X' 12 bind -x '"\C-b":echo B'