summaryrefslogtreecommitdiff
path: root/.config/zsh
diff options
context:
space:
mode:
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zshrc5
1 files changed, 2 insertions, 3 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 383b94a..fef70e0 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -72,6 +72,8 @@ setopt prompt_subst
PROMPT=" %B%F{blue}𝄞 %b%F{yellow}"
RPROMPT="\$vcs_info_msg_0_ %B%F{magenta}(%B%F{cyan}%1/%B%F{magenta})"
+[ -z "$SSH_CONNECTION" ] || PROMPT="$(whoami)@$(hostname)$PROMPT"
+
zstyle ':vcs_info:git:*' formats '%b'
# Quickly navigate to a created directory
@@ -94,9 +96,6 @@ f() {
[ -f "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-aliases" ] && source "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-aliases"
[ -f "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-shortcuts" ] && source "${XDG_CACHE_HOME:-$HOME/.cache}/zsh-shortcuts"
-# Git Root
-alias gr='cd $(git rev-parse --show-cdup)'
-
# Load zsh-syntax-highlighting; should be last.
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null