From 8ca0926edde27de7f31e31c9038721b55cf67d05 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Mon, 15 Jul 2024 13:05:15 -0400 Subject: Sixel fastfetch & better git root alias --- .config/zsh/.zshrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.config/zsh') 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 -- cgit v1.2.3