From 5711259e1a74bd7ede2d721922d762938de3e795 Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Fri, 9 Apr 2021 18:22:31 +1000 Subject: bash/zsh >> prompt broke --- .bashrc | 2 +- .zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 1678c21..4f2ca54 100644 --- a/.bashrc +++ b/.bashrc @@ -5,7 +5,7 @@ [[ $- != *i* ]] && return # Our prompt (user@computer: >>) -PS1="\[\033[38;5;14m\]\u\[$(tput sgr0)\]\[\033[38;5;243m\]@\[$(tput sgr0)\]\[\033[38;5;194m\]\h\[$(tput sgr0)\]\[\033[38;5;243m\]:\[$(tput sgr0)\]\[\033[38;5;15m\]\w \[$(tput sgr0)\]" +PS1="\[\033[38;5;14m\]\u\[$(tput sgr0)\]\[\033[38;5;243m\]@\[$(tput sgr0)\]\[\033[38;5;194m\]\h\[$(tput sgr0)\]\[\033[38;5;243m\]:\[$(tput sgr0)\]\[\033[38;5;15m\]\w » \[$(tput sgr0)\]" [ ! -z "$SSH_CLIENT" ] && PS1="(SSH) $PS1" diff --git a/.zshrc b/.zshrc index 3607e25..0a1ca9e 100644 --- a/.zshrc +++ b/.zshrc @@ -1,7 +1,7 @@ # Nick's light .zshrc # Setup the prompt (PS1) -PS1="%F{015}%n%f%F{243}@%f%F{176}%m%f%F{243}:%f%(5~|%-1~//%3~|%4~) " +PS1="%F{015}%n%f%F{243}@%f%F{176}%m%f%F{243}:%f%(5~|%-1~//%3~|%4~) » " [ "$TERM" = "linux" ] && PS1="%F{cyan}%n%f%F{white}@%f%F{magenta}%m%f%F{white}:%f%(5~|%-1~//%3~|%4~)$ " [ ! -z $SSH_CLIENT ] && PS1="(SSH) $PS1" -- cgit