답변:
그렇지 않은 경우 glob-expand-word키 시퀀스 에 바인딩해야합니다 . 일반적으로 다음과 같은 것을 추가하여 :
"\C-x*": glob-expand-word
에 .inputrc.
현재 상태 문제를 확인하려면 다음과 같이하십시오.
bind -P | grep glob-expand-word
결과는 다음과 같습니다.
glob-expand-word can be found on "\C-x*".
이는 다음을 의미합니다.
Ctrl-x*
이것은 또한 가장 효과가 있습니다 :
Ctrl-xCtrl-*
다른 멋진 bind -P것들을 살펴보고 매뉴얼을 작성하십시오.
목록 완성을 찾고있는 것 같습니다. 의 맨 페이지에서 bash:
COMP_TYPE
Set to an integer value corresponding to the type of completion
attempted that caused a completion function to be called: TAB,
for normal completion, ?, for listing completions after succes‐
sive tabs, !, for listing alternatives on partial word comple‐
tion, @, to list completions if the word is not unmodified, or
%, for menu completion. This variable is available only in
shell functions and external commands invoked by the program‐
mable completion facilities
따라서 일부 명령의 완료 기능에 따라 완료 방법이 달라집니다.
set -o vibash에서 사용하는 경우 Ctrl-X*작동하지 않습니다.
set -o vi모드 에서는 Esc*대신 사용해야 합니다.
<C-X>*작동하지만 <C-X>불필요하고 아무것도하지 않습니다. ( <C-X>vi에서와 같이 감소하지 않습니다.) 삽입 모드에 있다면 <Esc>먼저 사용해야 합니다.
man readline. 나는 Bash를 10 년 동안 사용해 왔으며 여전히 새로운 것을 배우고 있습니다.
Ctrl-X*