ohmyzsh学习笔记
本文记录一下在使用ohmyzsh过程中碰到的问题:
报错job table full or recursion limit exceeded:
原因:在.bash_aliases中出现了如下代码,导致循环导入:
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
解决方案:注释掉即可
报错[process exited with code 11 (0x0000000b)]
原因:.bashrc中出现了问题,暂未排查出来
解决方案:将.bashrc被分为.bashrc.bak,新建.bashrc文件并写入配置。(建议直接使用zsh替代bash)。
查看commands历史并使用
history:查看commands历史!!:选择最近命令!12:选择history中的第12条命令
参考资料:
One word accept
Ctrl+down/Ctrl+j:接受建议Ctrl+right:接受一个work
参考资料: