File: D1478.fix-rebind-C-x-test1.sh

package info (click to toggle)
ble.sh 0.4.0~git20250321.d4c812b-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,516 kB
  • sloc: sh: 71,367; awk: 1,316; cpp: 750; ansic: 186; javascript: 43; makefile: 35
file content (12 lines) | stat: -rw-r--r-- 247 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# unbind all "C-x ?"
for second in e g {A..Z} '\C-'{e,g,r,u,v,x,'?'} '!' '$' '(' ')' '*' '/' '@' '~'; do
  bind -r '\C-x'"$second"
done

bind -x '"\C-x\C-x":echo XX'
bind -r '\C-x\C-x'

bind -x '"\C-x":echo X'
bind -x '"\C-b":echo B'