zeusrunjia
V2EX  ›  macOS

mac 下终端 输入 ctrl + a 快捷键 无法回到行首

  •  
  •   zeusrunjia · Apr 1, 2014 · 5980 views
    This topic created in 4462 days ago, the information mentioned may be changed or developed.
    mac下终端 输入 ctrl + a 快捷键 不是回到行首 而是输出 ^A
    跪求该如何设置回去? 已经不知道曾经设置过什么了
    3 replies    1970-01-01 08:00:00 +08:00
    lululau
        1
    lululau  
       Apr 1, 2014   ❤️ 1
    设成 vi 模式了?set -o emacs 试试
    zeusrunjia
        2
    zeusrunjia  
    OP
       Apr 2, 2014
    @lululau 太聪明了 是的 thx
    scorpius
        3
    scorpius  
       Apr 3, 2014
    zsh 还是 bash ?
    zsh的话
    zshrc里 加入
    bindkey '^e' end-of-line
    bindkey '^a' beginning-of-line
    即使用vi mode 也可以ctrl+a ctrl+e了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2615 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 07:12 · PVG 15:12 · LAX 00:12 · JFK 03:12
    ♥ Do have faith in what you're doing.