Skip to content

Commit

Permalink
fix: fixing zsh prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
djtjwillia authored Nov 28, 2023
1 parent 9bc33b2 commit 287f3f8
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion roles/macbook/templates/zshrc.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,30 @@ DOT_FILES_PROJECT_DIRECTORY=~/.dotfiles
#omzsh
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME=""
plugins=(git aws docker iterm2 terraform python kubectl)
plugins=(
git
aws
docker
iterm2
terraform
python
kubectl
)
source $ZSH/oh-my-zsh.sh

#trim whitespace before adding commadns to history
setopt HIST_REDUCE_BLANKS
#allow prompt substitution
setopt prompt_subst

#basically the robbyrussell theme with your user name
PROMPT="%(?:%{$fg_bold[green]%}%1{➜%} :%{$fg_bold[red]%}%1{➜%}) %{$fg[green]%}%n %{$fg[cyan]%}%c%{$reset_color%} "
PROMPT+='$(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}%1{✗%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"

# source all global variables
for f in $DOT_FILES_PROJECT_DIRECTORY/globals/*; do source "$f"; done;
# source all functions
Expand Down

0 comments on commit 287f3f8

Please sign in to comment.