From 5bc0e97664dc34e53fadf0a83a5ad285269ab728 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Fri, 24 Oct 2025 17:41:55 +0200 Subject: [PATCH] ranger nesting in zsh --- zsh/.zshrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index ef8197b..bac0fe2 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -20,7 +20,7 @@ zstyle ':completion:*' cache-path ~/.zsh/cache HISTFILE=~/.zhistory HISTSIZE=1000 SAVEHIST=500 -export EDITOR=/usr/bin/vim +#export EDITOR=/usr/bin/vim #export VISUAL=/usr/bin/gvim WORDCHARS=${WORDCHARS//\/[&.;]} # Don't consider certain characters part of the word @@ -73,6 +73,7 @@ alias sxiv=nsxiv alias :q=exit alias vim=nvim alias radio="mpv https://radio.freenode.net/radio.ogg --volume=30" +alias calc="calcurse-caldav && calcurse && calcurse-caldav" # Theming section autoload -U compinit colors zcalc @@ -218,4 +219,8 @@ case $(basename "$(cat "/proc/$PPID/comm")") in ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8' ;; esac -# PROG=tea _CLI_ZSH_AUTOCOMPLETE_HACK=1 source "/home/tonitch/.config/tea/autocomplete.zsh" + +# Add level of ranger nesting if in ranger +if [ -n "$RANGER_LEVEL" ]; then + export RPROMPT="[r$RANGER_LEVEL]$RPROMPT"; +fi