V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zeusrunjia
V2EX  ›  macOS

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

  •  
  •   zeusrunjia · 2014-04-01 15:02:01 +08:00 · 4974 次点击
    这是一个创建于 3676 天前的主题,其中的信息可能已经有所发展或是发生改变。
    mac下终端 输入 ctrl + a 快捷键 不是回到行首 而是输出 ^A
    跪求该如何设置回去? 已经不知道曾经设置过什么了
    3 条回复    1970-01-01 08:00:00 +08:00
    lululau
        1
    lululau  
       2014-04-01 16:27:18 +08:00   ❤️ 1
    设成 vi 模式了?set -o emacs 试试
    zeusrunjia
        2
    zeusrunjia  
    OP
       2014-04-02 00:15:41 +08:00
    @lululau 太聪明了 是的 thx
    scorpius
        3
    scorpius  
       2014-04-03 12:18:26 +08:00
    zsh 还是 bash ?
    zsh的话
    zshrc里 加入
    bindkey '^e' end-of-line
    bindkey '^a' beginning-of-line
    即使用vi mode 也可以ctrl+a ctrl+e了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4448 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:32 · PVG 13:32 · LAX 22:32 · JFK 01:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.