diff options
-rw-r--r-- | bash/.bashrc | 2 | ||||
-rw-r--r-- | zsh/.zsh/.zshrc | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 387b5d6..9f4e80d 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -1,6 +1,6 @@ # Prompt if [[ -n $SSH_CLIENT ]]; then - PS1=$'\w \e[0;31m$\e[0m ' + PS1=$'\e[0;31m[\h]\e[0m \w $ ' else PS1='\w $ ' fi diff --git a/zsh/.zsh/.zshrc b/zsh/.zsh/.zshrc index 07009b8..0728e57 100644 --- a/zsh/.zsh/.zshrc +++ b/zsh/.zsh/.zshrc @@ -37,7 +37,11 @@ fi # }}} ## Overwrite default options {{{ +if [[ -n $SSH_CLIENT ]]; then +PROMPT='%F{red}[%M]%f %0~ $ ' +else PROMPT='%0~ $ ' +fi # Options unsetopt histverify |