1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00

Compare commits

..

No commits in common. "59a859d71ac6fb403d32ec9a5389d3388c509e7b" and "8cadda8bd10df63df02c5b3242d738fa3eac3042" have entirely different histories.

2 changed files with 2 additions and 19 deletions

View File

@ -1,7 +1,7 @@
if has("gui_running") || has("gui_vimr")
" Set GUI font according to OS
if has("gui_macvim")
set guifont=SauceCodePro\ Nerd\ Font\ Mono:h13
set guifont=Sauce\ Code\ Pro\ Nerd\ Font\ Complete\ Mono:h13
elseif has("gui_gtk2")
set guifont=DejaVu\ Sans\ Mono\ 15
endif

View File

@ -23,23 +23,6 @@ update_git_prompt() {
GIT_PROMPT+="%{$fg[blue]%}]%{$reset_color%} "
}
os_icon() {
case `uname` in
Darwin)
echo "%{$fg[white]%} macOS%{$reset_color%}"
;;
Linux)
echo "%{$fg[yellow]%} Linux%{$reset_color%}"
;;
FreeBSD)
echo "%{$fg[red]%} FreeBSD%{$reset_color%}"
;;
OpenBSD)
echo "%{$fg[yellow]%}OpenBSD%{$reset_color%}"
;;
esac
}
autoload -Uz add-zsh-hook
add-zsh-hook precmd update_git_prompt
@ -55,7 +38,7 @@ export CLICOLOR=1
setopt promptsubst
# prompt
export PROMPT='$(os_icon) ${SSH_CONNECTION+"%{$fg[yellow]%}%n@%m%{$reset_color%}:"}%{$fg_bold[green]%}%2c%{$reset_color%} ${GIT_PROMPT}%{$fg_bold[cyan]%}%{$reset_color%} '
export PROMPT='${SSH_CONNECTION+"%{$fg[yellow]%}%n@%m%{$reset_color%}:"}%{$fg_bold[green]%}%2c%{$reset_color%} ${GIT_PROMPT}%{$fg_bold[cyan]%}%{$reset_color%} '
export RPROMPT='%D{%K:%M:%S}'
# update the prompt on carriage return