Debian Codegraph @

memo/D2069.bashrc

raw
1 # bashrc -*- mode: sh; mode: sh-bash -*-
2 # https://github.com/akinomyoga/ble.sh/issues/361
3 #------------------------------------------------------------------------------
4 HISTFILE=~/.mwg/src/ble.sh/A
5 HISTSIZE=
6 HISTFILESIZE=
7 HISTCONTROL=ignoreboth:erasedups
8 shopt -s histappend
9 alias l='colored ls -lB'
10 #------------------------------------------------------------------------------
11
12 LANG='en_XY.UTF-8'
13 source out/ble.sh --norc
14
15 #source out/ble.sh --norc --attach=attach
16 #source out/ble.sh --norc --attach=prompt
17 #source out/ble.sh --norc --attach=none
18 #ble-bind -c C-h 'echo hello'
19 #ble-bind -f C-h 'external-command "echo hello"'
20 # function ble/widget/test1 {
21 # ble/term/leave
22 # ble/util/buffer.flush >&2
23 # ble/term/enter
24 # ble/util/buffer.flush >&2
25 # }
26 # ble-bind -f C-h test1
27 # function ble/widget/test2 {
28 # ble/term/stty/leave
29 # ble/term/rl-convert-meta/leave
30 # ble/term/stty/enter
31 # ble/term/rl-convert-meta/enter
32 # ble/util/buffer.flush >&2
33 # }
34 # ble-bind -f C-h test2
35 # function ble/widget/test3 {
36 # #declare -p _ble_term_rl_convert_meta_adjusted >&2
37 # ble/term/rl-convert-meta/leave
38 # ble/term/rl-convert-meta/enter
39 # ble/util/buffer.flush >&2
40 # }
41 # ble-bind -f C-h test3
42 # function ble/widget/test4 {
43 # builtin bind -v | grep convert-meta >&2
44 # builtin bind 'set convert-meta off'
45 # }
46 #ble-bind -f C-h test4
47
48 # [対策コード]
49 # if ((_ble_bash>=50200)); then
50 # ble/util/assign x '{ LC_ALL= LC_CTYPE=C ble/util/setexit 0; } 2>&1'
51 # if [[ $x ]]; then
52 # echo "$x" >&2
53 # builtin read -et 0.000001 xxx </dev/tty
54 # fi
55 # fi