用 zsh 感觉卡卡的,求贴 .zshrc 参考一下。

2015 年 7 月 17 日
 Tiande

我就取消注释几行而已,感觉延迟好厉害。

ZSH_THEME="random"
HYPHEN_INSENSITIVE="true"
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="mm/dd/yyyy"
plugins=(git atom battery brew brew-cask bgnotify coffee colorize colored-man command-not-found common-aliases compleat copydir copyfile cp cpanm dircycle dirhistory dirpersist django emoji-clock encode64 git-extras git-flow git-flow-avh git-hubflow git-prompt git-remote-branch gitfast github gitignore history history-substring-search iwhois jump last-working-dir lol mysql-macports npm osx per-directory-history pip pylint python ssh-agent sudo tmux vi-mode vim-interaction virtualenv wd)
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin"
export LANG=en_US.UTF-8
if [[ -n $SSH_CONNECTION ]]; then
  export EDITOR='vim'
else
  export EDITOR='mvim'
fi
4586 次点击
所在节点    macOS
17 条回复
Twinkle
2015 年 7 月 17 日
# Add wisely, as too many plugins slow down shell startup.
wezzard
2015 年 7 月 17 日
換 SSD
a591826944
2015 年 7 月 17 日
LZ 加那么多插件。。你确定都在用?
18000rpm
2015 年 7 月 17 日
我都把配置去了,按需手动加载。
不知道有没有什么好办法
mingzhi
2015 年 7 月 17 日
fish
ynyounuo
2015 年 7 月 17 日
.zshrc-e 全去注释贴过去也不卡的啊,你的插件太多了。
tonynothing
2015 年 7 月 17 日
插件数量是我的51倍
Tiande
2015 年 7 月 17 日
@wezzard 就是他喵的ssd

@ynyounuo
@a591826944
@18000rpm
@tonynothing
装 zsh 就是为了那些不全呢,我把 dir history 的去掉试试好了。 vim 装这个数量级的插件还是 如丝般润滑 呐。
wezzard
2015 年 7 月 17 日
看了一下 gitignore 貌似可以用 gitignore.io 替代
Tiande
2015 年 7 月 18 日
@wezzard 好哒
zhouzm
2015 年 7 月 18 日
znoodl
2015 年 7 月 18 日
据说omz很慢,试试prezto
mccally
2015 年 7 月 18 日
autoload -U compinit
compinit

PROMPT='%B%m%b# '
alias ls='ls -Gh'
alias ll='ls -GHl'
alias la='ls -GHAl'
Tiande
2015 年 7 月 18 日
@mccally 我已经用回 bash 了,装了个 bash-completion ,zsh 实在是太慢...
johnnyb
2015 年 7 月 19 日
fish 好用,响应飞快,但是不兼容 .bashrc。
如果 .bashrc 不是很复杂,用 sed 替换一下(变量,if,for,函数。。的写法),还是可以做到配置共享的,我就这么用了大半年了。
Tiande
2015 年 7 月 19 日
@johnnyb 现在用 bash 不折腾了。
hegfirose
2015 年 7 月 22 日
fish +1

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/206471

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX