aboutsummaryrefslogblamecommitdiff
path: root/ksh/kshrc.d/bind.ksh
blob: a199973114ce4e797a8d85c6caac481f89909d44 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                                      

                    

                                                                             
                   
                            

          

                                                                              
               
                            
                                    
          
    
# Try to bind tab to complete words and Ctrl-Alt-L to clear the screen
# Already done in ksh93
case $KSH_VERSION in

    # More straightforward with mksh; bind keys to the appropriate emacs mode
    # editing commands
    *'MIRBSD KSH'*)
        bind '^I'='complete'
        ;;

    # Similar with pdksh; there's a "complete" command, but not a "clear" one,
    # so we fake it with clear(1) and some yanking
    *'PD KSH'*)
        bind '^I'='complete'
        bind -m '^[^L'='^Uclear^J^Y'
        ;;
esac