sistema_progs

Programas para customizar o meu entorno de traballo nos meus equipos persoais
Log | Files | Refs

D2070.bashrc (2116B)


      1 # bashrc -*- mode: sh; mode: sh-bash -*-
      2 #------------------------------------------------------------------------------
      3 HISTFILE=~/.mwg/src/ble.sh/A
      4 HISTSIZE=
      5 HISTFILESIZE=
      6 HISTCONTROL=ignoreboth:erasedups
      7 shopt -s histappend
      8 alias l='colored ls -lB'
      9 #------------------------------------------------------------------------------
     10 
     11 # 再現1 (bash-dev (5.3)で job 関連の warning が出る。release ビルドでは出ない)
     12 # LANG='en_XY.UTF-8'
     13 # source out/ble.sh --norc
     14 
     15 # 再現2
     16 # source out/ble.sh --norc --attach=none
     17 # # function conditional-sync {
     18 # #   (
     19 # #     sleep 1 & pid=$!
     20 # #     while builtin kill -0 "$pid" &>/dev/null; do
     21 # #       sleep 0.2
     22 # #     done
     23 # #   )
     24 # # }
     25 # # function test1 {
     26 # #   # compgen=${ ble/util/conditional-sync \
     27 # #   #              'builtin compgen -c -- ""' \
     28 # #   #              '! ble/decode/has-input' 250 progressive-weight; }
     29 # #   #compgen=${ conditional-sync; }
     30 # #   compgen=${ sleep 0.1 & }
     31 # # }
     32 # # ble-bind -@ C-t test1
     33 # # builtin bind -x '"\C-t": test1'
     34 # builtin bind -x '"\C-t": v=${ sleep 0.1 & }'
     35 
     36 # [再現3]
     37 # source out/ble.sh --norc --attach=none
     38 # builtin bind -x '"\C-t": v=${ sleep 0.1 & }'
     39 
     40 # [設定抽出 for source ble.sh]
     41 # { shopt; builtin bind -v; } > a1.txt
     42 # source out/ble.sh --norc --attach=none
     43 # { shopt; builtin bind -v; } > a2.txt
     44 # diff -bwu a1.txt a2.txt > ad.txt
     45 # rm a1.txt a2.txt
     46 
     47 # shopt -s inherit_errexit
     48 # builtin bind 'set colored-completion-prefix on'
     49 # builtin bind 'set colored-stats on'
     50 # builtin bind 'set skip-completed-text on'
     51 # builtin bind -x '"\C-t": v=${ sleep 0.1 & }'
     52 
     53 # [再現4]
     54 #source out/ble.sh --norc --attach=none
     55 #builtin bind -x '"\C-t": v=${ ble/builtin/sleep 0.1 & }'
     56 
     57 # [再現5]
     58 # enable -f /home/murase/opt/bash/dev/lib/bash/sleep sleep
     59 # function ble/builtin/sleep {
     60 #   while (($#)); do shift; done
     61 #   builtin sleep 0.10000000000000
     62 # }
     63 # builtin bind -x '"\C-t": v=${ ble/builtin/sleep 0.1 & }'
     64 
     65 # [最小再現]
     66 PS1='\$ '
     67 LANG=C
     68 enable -f /home/murase/opt/bash/dev/lib/bash/sleep sleep
     69 function f1 { for a in 1; do builtin sleep 0.1; done }
     70 builtin bind -x '"\C-t": v=${ f1 & }'