From 741352342e45fcfdbecd67039e47aec31ba54f3e Mon Sep 17 00:00:00 2001 From: goodhumored <goodhumored@vk.com> Date: Sun, 28 Jul 2024 11:36:37 +0300 Subject: [PATCH] ssh emoji added --- .../__pycache__/termcolor.cpython-312.pyc | Bin 4292 -> 4301 bytes .oh-my-zsh/themes/amuse.zsh-theme | 9 +++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.oh-my-zsh/plugins/aliases/__pycache__/termcolor.cpython-312.pyc b/.oh-my-zsh/plugins/aliases/__pycache__/termcolor.cpython-312.pyc index 2d200f860983c100ab319029c474841f67f3ad82..d11be5657940f09696578fd1a99d0371726c26c7 100644 GIT binary patch delta 54 zcmX@2cvg|;G%qg~0}!O<EKJ+TQ^Fzbq@R(Wo2s9lpP!OZnwwvgnxdbQUy_!YlUlra I5{D570MF(T@c;k- delta 45 zcmX@BctnxsG%qg~0}yCtM5k`#Dd7;Z)X&JzP1R4&&riuH&CM@LP1!t~!-xX_C+7{= diff --git a/.oh-my-zsh/themes/amuse.zsh-theme b/.oh-my-zsh/themes/amuse.zsh-theme index eaa3adc..e7d3eda 100644 --- a/.oh-my-zsh/themes/amuse.zsh-theme +++ b/.oh-my-zsh/themes/amuse.zsh-theme @@ -18,13 +18,18 @@ function preexec() { function precmd() { if [ $timer ]; then timer_show=$(($SECONDS - $timer)) - export RPROMPT="%F{cyan}${timer_show}s %{$reset_color%}" + export RPROMPT="%F{green}${timer_show}s %{$reset_color%}" unset timer fi } +ssh="" +if [[ -n $SSH_CONNECTION ]]; then + ssh="🌐" +fi + PROMPT=' -%{$fg_bold[green]%}%~%{$reset_color%}$(git_prompt_info)$(virtualenv_prompt_info) ⌚ %{$fg_bold[red]%}%*%{$reset_color%} +$(ssh)%{$fg_bold[green]%}%~%{$reset_color%}$(git_prompt_info)$(virtualenv_prompt_info) ⌚ %{$fg_bold[red]%}%*%{$reset_color%} $ ' # RPROMPT='$(ruby_prompt_info)'