{post_link shell/‘zsh和bash共用自定义配置’ }
¶ 不共享历史
zsh默认会在不同的会话之间共享历史,禁用这个特性:
https://github.com/ohmyzsh/ohmyzsh/issues/2537 |
¶
禁止zsh解析*
echo "setopt no_nomatch" >> ~/.zshrc |
¶
自带的rm *
提醒
rm -f * |
明明已经用了-f
但还是有prompt,很烦。可以这样关掉:
echo "setopt rmstarsilent" >> ~/.zshrc |
参考:https://github.com/ohmyzsh/ohmyzsh/issues/10268
¶ 多行命令换行
Alt
+Enter