Maybe I have a problem
[redacted]@[Artemis]: ~ % wc -l .rc_common .zshrc .bash_aliases .bashrc 234 .rc_common 39 .zshrc 5 .bash_aliases 29 .bashrc 307 total [redacted]@[Artemis]: ~ % wc -l .vimrc 132 .vimrc

seen from United States
seen from United States
seen from Russia
seen from Singapore

seen from Türkiye
seen from Türkiye

seen from Portugal
seen from Yemen
seen from United States
seen from China
seen from Germany
seen from China
seen from Türkiye
seen from Yemen
seen from Malaysia
seen from Türkiye

seen from United States

seen from United Kingdom

seen from United States
seen from United States
Maybe I have a problem
[redacted]@[Artemis]: ~ % wc -l .rc_common .zshrc .bash_aliases .bashrc 234 .rc_common 39 .zshrc 5 .bash_aliases 29 .bashrc 307 total [redacted]@[Artemis]: ~ % wc -l .vimrc 132 .vimrc
Update on the .zshrc
I needed a little more information from my prompt so I extended it a bit HISTFILE=~/.histfile HISTSIZE=1000 SAVEHIST=1000 setopt autocd setopt promptsubst autoload -U colors && colors autoload -Uz vcs_info && vcs_info precmd() { vcs_info } zstyle ':vcs_info:*' enable git hg bzr zstyle ':vcs_info:*' check-for-changes true zstyle ':vcs_info:*' get-unapplied true zstyle ':vcs_info:*' unstagedstr "!" zstyle ':vcs_info:*' formats "%F{5}[%s:%r|%b]%u" zstyle ':vcs_info:*' actionformats "%F{5}[%s:%r|%b-%a]" PROMPT="%F{2}%n@%M:%F{6}%d%F{11}>> " RPROMPT='${vcs_info_msg_0_}' The result is a shell that lets me switch into a directory without typing cd and if the dir is version controlled it shows me the versioning system, the repo name, the branch I'm on and whether there are unstaged changes (indicated by !)
I noticed that using Zsh give me slow access to my git repo or my command line for that matters. However, this fix seems to speed up my access to my git.
thanks!
ツンデレzshrc
zshをツンデレにする
local GREEN=$'%{\e[1;32m%}' local YELLOW=$'%{\e[1;33m%}' local BLUE=$'%{\e[1;34m%}' local LIGHT_BLUE=$'%{\e[1;36m%}' local DEFAULT=$'%{\e[1;0m%}' if [ "$TERM" = "emacs" ] ; then PROMPT="${LIGHT_BLUE}Yes, Master${DEFAULT}@${GREEN}${HOST}?${DEFAULT} [${BLUE}%~/${DEFAULT}]%% " else PROMPT="${LIGHT_BLUE}Yes, Master${DEFAULT}@${GREEN}${HOST}?${DEFAULT} [${BLUE}%~/${DEFAULT}]%% " fi PROMPT2="%_%% " SPROMPT="%r? べ, 別にあんたのために修正したんじゃないからね! [n,y,a,e]:"
こんな感じ
Yes, [email protected]? [~/]% sl ls? べ, 別にあんたのために修正したんじゃないからね! [n,y,a,e]:
[Mac] zshインストール
iMacが新しくなったので再度インストール。(Lion環境) % brew install zsh /etc/shellsにインストールしたzshを追記 % sudo sh -c "echo '/usr/local/bin/zsh' >> /etc/shells" 既にあれば行わない % touch ~/.zshrc パスを設定。 これを行わないとデフォルトの/etc/zshのまま。 % echo 'export PATH=/usr/local/bin:$PATH' >> ~/.zshrc 再読み込み % source .zshrc No related posts. No related posts. http://bit.ly/eA8V8J via WordPress http://bit.ly/KNAiDT