Skip to content

Commit

Permalink
feat: Added basic prompt (includes git and time)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecollier committed Jan 2, 2024
1 parent 756779e commit 4d73edb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ setopt SHARE_HISTORY
export VISUAL=nvim
export EDITOR=nvim

# file browser setup
export NNN_PLUG='o:fzopen;d:diffs;n:notes;'

alias nnn="nnn -E"
alias ls="exa"
alias utcdate='date -u +"%Y-%m-%dT%H:%M:%SZ"'

Expand All @@ -44,3 +41,8 @@ export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# install zoxide
eval "$(zoxide init zsh)"

autoload -Uz vcs_info
precmd() { vcs_info }
zstyle ':vcs_info:git:*' formats '%b '
setopt PROMPT_SUBST
PROMPT='%F{green}%*%f %F{reset}%~%f %F{green}${vcs_info_msg_0_}%F{reset}'

0 comments on commit 4d73edb

Please sign in to comment.