From e9b51b16db00802f6ba2e93912f0da017f73172d Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 28 Dec 2023 22:02:02 +0800 Subject: [PATCH] Better zsh --- .config/hypr/scripts/logout.sh | 4 ++-- .zshrc | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.config/hypr/scripts/logout.sh b/.config/hypr/scripts/logout.sh index 66b76bc..30c2a54 100755 --- a/.config/hypr/scripts/logout.sh +++ b/.config/hypr/scripts/logout.sh @@ -12,9 +12,9 @@ choice=$(echo -e "suspend\nshutdown\npoweroff\nreboot\nlock" | wofi -d --prompt if test "$choice" = lock ; then - # sleep less when power on + # don't sleep when power on if acpi -a | grep -q on; then - sleep_time=3600 + sleep_time=86400 else sleep_time=10 fi diff --git a/.zshrc b/.zshrc index 8f0f6fa..358fcdf 100644 --- a/.zshrc +++ b/.zshrc @@ -91,10 +91,14 @@ zstyle ':prompt:pure:git:stash' show yes zstyle ':prompt:pure:prompt:success' color default #edit in vim -autoload edit-command-line +autoload -Uz edit-command-line zle -N edit-command-line bindkey '' edit-command-line +# better CTRL-w +autoload -Uz select-word-style +select-word-style bash + zmodload zsh/complist bindkey -M menuselect 'h' vi-backward-char bindkey -M menuselect 'k' vi-up-line-or-history @@ -125,7 +129,7 @@ export MANROFFOPT="-c" export BAT_THEME="ansi" #local path -export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin" +export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin}" export MANPATH="${MANPATH}:${HOME}/.local/share/man" #ccache support