summaryrefslogtreecommitdiff
path: root/.config/zsh
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-07-15 13:05:15 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-07-15 13:05:15 -0400
commit8ca0926edde27de7f31e31c9038721b55cf67d05 (patch)
tree3650d2280279043ab4337210afeb91853f659fcc /.config/zsh
parente45405aabb815d85f32d61b1d98f233ccf89e4b4 (diff)
Sixel fastfetch & better git root alias
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