diff options
| author | nsfisis <nsfisis@gmail.com> | 2021-05-30 21:36:23 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2021-05-30 21:36:23 +0900 |
| commit | 33d1e3dca1531757b768a23777620a212804f529 (patch) | |
| tree | 1707aaf35c1e22561e5dc7e8325fb78a82cbb9dc /.zshrc | |
| parent | 4f3a417a3d9d41ebeb9b5b1b53fb84de52c6c8b1 (diff) | |
| download | dotfiles-33d1e3dca1531757b768a23777620a212804f529.tar.gz dotfiles-33d1e3dca1531757b768a23777620a212804f529.tar.zst dotfiles-33d1e3dca1531757b768a23777620a212804f529.zip | |
Add starship.toml
Diffstat (limited to '.zshrc')
| -rw-r--r-- | .zshrc | 40 |
1 files changed, 4 insertions, 36 deletions
@@ -219,7 +219,6 @@ bindkey "^U" backward-kill-line # C-j To go to the parent directory. function __cd_parent_dir() { pushd .. > /dev/null - __update_vcs_info zle reset-prompt } zle -N __cd_parent_dir @@ -228,7 +227,6 @@ bindkey "^J" __cd_parent_dir # C-o To go to the previous directory. function __cd_prev_dir() { popd > /dev/null - __update_vcs_info zle reset-prompt } zle -N __cd_prev_dir @@ -248,40 +246,6 @@ bindkey "^G" __cd_project_root_dir zmodload zsh/complist - -autoload -Uz vcs_info - - -zstyle ':vcs_info:git:*' check-for-changes true -zstyle ':vcs_info:git:*' unstagedstr "+" # Not Staged -zstyle ':vcs_info:*' max-reports 2 -zstyle ':vcs_info:*' formats " (%b)%u" -zstyle ':vcs_info:*' actionformats ' (%b %a)%u' - - -function __update_vcs_info() { - psvar=() - LANG=en_US.UTF-8 vcs_info - if [[ -n "$vcs_info_msg_0_" ]]; then - psvar[1]="$vcs_info_msg_0_" - fi -} - -function precmd() { - __update_vcs_info -} - - - -PROMPT=" -%75F%B%~%b%1(v,%1v,) -%150F>%153F>%159F>%f " - -PROMPT2="%63F>%62F>%61F>%f " - -SPROMPT="%179F%BDid you mean %r? (n/y):%b%f " - - HISTFILE=$HOME/.zsh_history HISTSIZE=1000000 SAVEHIST=1000000 @@ -355,3 +319,7 @@ export PATH=/usr/local/opt/gettext/bin:$PATH # To override system-provided Ruby with brewed Ruby export PATH=/usr/local/opt/ruby/bin:$PATH + + + +eval "$(starship init zsh)" |
