Skip to content

Commit

Permalink
Fix shell integration order and add iterm2 prompt mark
Browse files Browse the repository at this point in the history
  • Loading branch information
pwalch committed Mar 13, 2024
1 parent d7d2ec1 commit 12664a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dot_zshrc_custom.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@ export TERM="xterm-256color"
# Disable autocomplete on scp, as it is always slow
zstyle ':completion:*' remote-access no

test -e "$HOME/.iterm2_shell_integration.zsh" && source "$HOME/.iterm2_shell_integration.zsh" || true

# Overwriting robbyrussel's theme so it has newlines
PROMPT_NEWLINE=$'\n'
PROMPT='${PROMPT_NEWLINE}%{$fg_bold[cyan]%}---- %c%{$reset_color%} $(git_prompt_info)'
PROMPT="%{$(iterm2_prompt_mark)%}"
PROMPT+='${PROMPT_NEWLINE}%{$fg_bold[cyan]%}---- %c%{$reset_color%} $(git_prompt_info)'
PROMPT+="${PROMPT_NEWLINE}%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )%{$reset_color%}"
if [[ "$OSTYPE" == 'darwin'* ]]; then
# There is little space by default after the arrow without
# this on macOS.
PROMPT+=' '
fi

test -e /Users/pierre/.iterm2_shell_integration.zsh && source /Users/pierre/.iterm2_shell_integration.zsh || true

export PATH="$HOME/.local/bin:$PATH"
export EDITOR="micro"
Expand Down

0 comments on commit 12664a7

Please sign in to comment.