Last active
July 26, 2024 17:22
-
-
Save palaniraja/e12ff78d71c58a0f24d8660c3c09fb2e to your computer and use it in GitHub Desktop.
custom prompt in af-magic zsh-theme - to show prompt in next line (so PWD can be above that) 'NEWLINE' in line #1 and #4 are the changes #12 to disable username@machine on right
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NEWLINE=$'\n' | |
# primary prompt: dashed separator, directory and vcs info | |
PS1="${FG[237]}\${(l.\$(afmagic_dashes)..-.)}%{$reset_color%} | |
${FG[032]}%~\$(git_prompt_info)\$(hg_prompt_info) ${FG[105]}%(!.#.${NEWLINE}»)%{$reset_color%} " | |
PS2="%{$fg[red]%}\ %{$reset_color%}" | |
# right prompt: return code, virtualenv and context (user@host) | |
# added time stamp to right prompt [4:16:55] | |
RPS1="%D{%L:%M:%S} %(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
if (( $+functions[virtualenv_prompt_info] )); then | |
RPS1+='$(virtualenv_prompt_info)' | |
fi | |
RPS1+=' $(vi_mode_prompt_info)' #vi-mode plugin | |
# RPS1+=" ${FG[237]}%n@%m%{$reset_color%}" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
enable vi-mode plugin