From e8c74fafe49bc1b1e999807ea4e4cde2f177baf7 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Sun, 8 Jun 2025 22:48:06 -0700 Subject: [PATCH] Minor `.zshrc` cleanup --- .zshrc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.zshrc b/.zshrc index a51ea3c..9a9ab7f 100644 --- a/.zshrc +++ b/.zshrc @@ -9,9 +9,7 @@ bindkey -v # Configure cursor function zle-keymap-select { - #RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}" - #RPS2=$RPS1 - zle reset-prompt + zle reset-prompt case $KEYMAP in vicmd) @@ -100,6 +98,7 @@ alias ll='ls -alFh' alias ls="ls --color=auto" alias lsl="ls --color=auto -lah" alias ssh=ssh + # Use tmux for local unelevated shells if [ -z "${SUDO_USER}" ] && [ -z "${SSH_CONNECTION}" ] && [ -z "${TERM_PROGRAM}" ]; then tmux new -A -s local_tmux @@ -151,10 +150,7 @@ zinit light zsh-users/zsh-autosuggestions zinit light zsh-users/zsh-syntax-highlighting # Key bindings config -KEYTIMEOUT=5 +#KEYTIMEOUT=5 # ^[ for esc; ^I for tab bindkey '^[[Z' autosuggest-accept -## Explicitly exit ok -#echo "" > /dev/null -