diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-06-29 16:29:32 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-06-29 16:29:47 +0800 |
| commit | 0f532510d2001399e3800a579d4cae0762daf0bd (patch) | |
| tree | 0bb3fb21e4ea3e1e63777778afb27f2ae97b1168 /prompt.zsh | |
| parent | fcc547feac5835da7582991f662f04aa4746b99c (diff) | |
init
Diffstat (limited to 'prompt.zsh')
| -rwxr-xr-x | prompt.zsh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/prompt.zsh b/prompt.zsh new file mode 100755 index 0000000..1007a99 --- /dev/null +++ b/prompt.zsh @@ -0,0 +1,20 @@ +## +## Prompt +## + +# reload cache i think +if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then + source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" +fi + +if [[ $DISPLAY ]]; then +# powerlevel + source ~/.oh-my-zsh/themes/powerlevel10k/powerlevel10k.zsh-theme + # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. + source ~/.p10k.zsh +else + #PS1='[%n@%m %~]\$ ' + PS1='%F{green}[%F{reset}%F{red}%n%F{reset}%F{yellow}@%F{reset}%F{green}%m%F{reset}:%F{cyan}%~%F{reset}%F{green}]%F{reset}$ ' +fi + +# vim:ft=zsh |
