From 61317b5483ed8cbdb1ffd62207240b3ed41b84e3 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Mon, 20 Feb 2023 15:11:19 +0100 Subject: [PATCH] Removed temp --- zsh/ohmyzsh/themes/laptop-hostname.zsh-theme | 6 +----- zsh/ohmyzsh/themes/laptop.zsh-theme | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/zsh/ohmyzsh/themes/laptop-hostname.zsh-theme b/zsh/ohmyzsh/themes/laptop-hostname.zsh-theme index 343e6f7..d5a1740 100644 --- a/zsh/ohmyzsh/themes/laptop-hostname.zsh-theme +++ b/zsh/ohmyzsh/themes/laptop-hostname.zsh-theme @@ -79,10 +79,6 @@ fi local return_code="" local git_branch=' $(git_prompt_info)' -local PR_TEMP="" - -command -v vcgencmd > /dev/null && PR_TEMP=' ${PR_GREEN}‹$(vcgencmd measure_temp | cut -d = -f 2)›${PR_NO_COLOR}' - local PR_DATE='${PR_BOLD}${PR_MAGENTA}[%D{%H:%M}]${PR_NO_COLOR}' extract_kube() { @@ -97,7 +93,7 @@ local kube='$(extract_kube)' separator='${PR_YELLOW}::${PR_NO_COLOR}' tty | read tty_value if [[ $tty_value == *pts* ]]; then # if in a tty - PROMPT="$PR_ARROW_UP${PR_DATE} ${user_host}${separator}${PR_NO_COLOR}${current_dir}${rvm_ruby}${git_branch}${kube}${PR_TEMP} + PROMPT="$PR_ARROW_UP${PR_DATE} ${user_host}${separator}${PR_NO_COLOR}${current_dir}${rvm_ruby}${git_branch}${kube} $PR_ARROW_DOWN$PR_PROMPT ${PR_NO_COLOR}" return_code="%(?.%{$PR_GREEN%}%? ↵%{$PR_NO_COLOR%}.%{$PR_RED%}%? ↵%{$PR_NO_COLOR%})" else diff --git a/zsh/ohmyzsh/themes/laptop.zsh-theme b/zsh/ohmyzsh/themes/laptop.zsh-theme index 1179cdb..3ccc44a 100644 --- a/zsh/ohmyzsh/themes/laptop.zsh-theme +++ b/zsh/ohmyzsh/themes/laptop.zsh-theme @@ -79,17 +79,13 @@ fi local return_code="" local git_branch='$(git_prompt_info)' -local PR_TEMP="" - -command -v vcgencmd > /dev/null && PR_TEMP=' ${PR_GREEN}‹$(vcgencmd measure_temp | cut -d = -f 2)›${PR_NO_COLOR}' - local PR_DATE='${PR_BOLD}${PR_MAGENTA}[%D{%H:%M}]${PR_NO_COLOR}' #PROMPT="${user_host} ${current_dir} ${rvm_ruby}${git_branch}$PR_PROMPT " separator='${PR_YELLOW}::${PR_NO_COLOR}' tty | read tty_value if [[ $tty_value == *pts* ]]; then # if in a tty - PROMPT="$PR_ARROW_UP${PR_DATE} ${user_host}${separator}${PR_NO_COLOR}${current_dir} ${rvm_ruby}${git_branch}${PR_TEMP} + PROMPT="$PR_ARROW_UP${PR_DATE} ${user_host}${separator}${PR_NO_COLOR}${current_dir} ${rvm_ruby}${git_branch} $PR_ARROW_DOWN$PR_PROMPT ${PR_NO_COLOR}" return_code="%(?.%{$PR_GREEN%}%? ↵%{$PR_NO_COLOR%}.%{$PR_RED%}%? ↵%{$PR_NO_COLOR%})" else