사용자 도구

사이트 도구


linux:bash

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판 양쪽 다음 판
linux:bash [2018/11/28 17:46]
kwon37xi [참조]
linux:bash [2019/09/09 13:30]
kwon37xi
줄 171: 줄 171:
     exit     exit
 fi fi
 +</code>
 +
 +===== Editor로 명령 편집하기 =====
 +  * ''Ctrl-X Ctrl-E''를 누르면 ''$EDITOR'' 혹은 ''$VISUAL''에 지정된 에디터로 명령행을 편집할 수 있다.
 +  * ''set -o vi'' 모드일 때는 ''~/.inputrc''에 아래 내용을 넣고 ''Ctrl-X Ctrl-E''를 누른다<code sh>
 +bind -m vi-insert '"\C-x\C-e": edit-and-execute-command'
 </code> </code>
  
줄 188: 줄 194:
   * [[https://zwischenzugs.com/2018/01/06/ten-things-i-wish-id-known-about-bash/|Ten Things I Wish I’d Known About bash – zwischenzugs]]   * [[https://zwischenzugs.com/2018/01/06/ten-things-i-wish-id-known-about-bash/|Ten Things I Wish I’d Known About bash – zwischenzugs]]
   * [[https://devhints.io/bash.html|Bash scripting cheatsheet]]   * [[https://devhints.io/bash.html|Bash scripting cheatsheet]]
 +
 +
linux/bash.txt · 마지막으로 수정됨: 2024/02/07 08:41 저자 kwon37xi