diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2025-06-28 00:56:20 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2025-06-28 00:56:20 -0400 |
| commit | 78fb17d9892d4b06be2e846e6a4fdab60ca2e5c4 (patch) | |
| tree | 13ef8dbfcfe47cbea07b0d8c82a25b1e977f5c6b /zsh | |
| parent | Remove live grep w/ history, update deps, tweak go settings (diff) | |
| download | dotfiles-78fb17d9892d4b06be2e846e6a4fdab60ca2e5c4.zip | |
Add compinit and break out prompt sh script
Diffstat (limited to 'zsh')
| -rw-r--r-- | zsh/.zsh/prompt.sh | 11 | ||||
| -rwxr-xr-x | zsh/.zshrc | 22 |
2 files changed, 20 insertions, 13 deletions
diff --git a/zsh/.zsh/prompt.sh b/zsh/.zsh/prompt.sh new file mode 100644 index 0000000..ef015fd --- /dev/null +++ b/zsh/.zsh/prompt.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env zsh + +autoload -Uz vcs_info +zstyle ":vcs_info:*" enable git svn +zstyle ':vcs_info:git:*' formats '%F{green}(%b)%f ' +precmd() { + vcs_info +} +setopt prompt_subst +NEWLINE=$'\n' +PROMPT=' %2~ ${vcs_info_msg_0_}%# ' @@ -1,19 +1,16 @@ -autoload -Uz vcs_info -zstyle ":vcs_info:*" enable git svn -zstyle ':vcs_info:git:*' formats '%F{green}(%b)%f ' -precmd() { - vcs_info -} -setopt prompt_subst -NEWLINE=$'\n' -PROMPT=' %2~ ${vcs_info_msg_0_}%# ' +#!/usr/bin/env zsh + +source ~/.zsh/prompt.sh + +autoload -Uz compinit +compinit export HISTFILE=~/.zhistory export HISTSIZE=100000 export SAVEHIST=100000 export EDITOR="nvim" -export BROWSER="brave" +export BROWSER="vivaldi" export BAT_THEME="tokyonight_night" export MANPAGER="less" export PAGER="less" @@ -47,8 +44,8 @@ export NVM_DIR="$HOME/.nvm" export PNPM_HOME="/Users/eugene/Library/pnpm" case ":$PATH:" in - *":$PNPM_HOME:"*) ;; - *) export PATH="$PNPM_HOME:$PATH" ;; +*":$PNPM_HOME:"*) ;; +*) export PATH="$PNPM_HOME:$PATH" ;; esac eval "$(brew shellenv)" @@ -77,4 +74,3 @@ alias l="ls -alG" alias vi="nvim" alias vim="nvim" - |