mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-24 20:01:49 +08:00
Better zsh
This commit is contained in:
parent
7c19cae6eb
commit
e9b51b16db
@ -12,9 +12,9 @@ choice=$(echo -e "suspend\nshutdown\npoweroff\nreboot\nlock" | wofi -d --prompt
|
|||||||
|
|
||||||
|
|
||||||
if test "$choice" = lock ; then
|
if test "$choice" = lock ; then
|
||||||
# sleep less when power on
|
# don't sleep when power on
|
||||||
if acpi -a | grep -q on; then
|
if acpi -a | grep -q on; then
|
||||||
sleep_time=3600
|
sleep_time=86400
|
||||||
else
|
else
|
||||||
sleep_time=10
|
sleep_time=10
|
||||||
fi
|
fi
|
||||||
|
8
.zshrc
8
.zshrc
@ -91,10 +91,14 @@ zstyle ':prompt:pure:git:stash' show yes
|
|||||||
zstyle ':prompt:pure:prompt:success' color default
|
zstyle ':prompt:pure:prompt:success' color default
|
||||||
|
|
||||||
#edit in vim
|
#edit in vim
|
||||||
autoload edit-command-line
|
autoload -Uz edit-command-line
|
||||||
zle -N edit-command-line
|
zle -N edit-command-line
|
||||||
bindkey '' edit-command-line
|
bindkey '' edit-command-line
|
||||||
|
|
||||||
|
# better CTRL-w
|
||||||
|
autoload -Uz select-word-style
|
||||||
|
select-word-style bash
|
||||||
|
|
||||||
zmodload zsh/complist
|
zmodload zsh/complist
|
||||||
bindkey -M menuselect 'h' vi-backward-char
|
bindkey -M menuselect 'h' vi-backward-char
|
||||||
bindkey -M menuselect 'k' vi-up-line-or-history
|
bindkey -M menuselect 'k' vi-up-line-or-history
|
||||||
@ -125,7 +129,7 @@ export MANROFFOPT="-c"
|
|||||||
export BAT_THEME="ansi"
|
export BAT_THEME="ansi"
|
||||||
|
|
||||||
#local path
|
#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"
|
export MANPATH="${MANPATH}:${HOME}/.local/share/man"
|
||||||
|
|
||||||
#ccache support
|
#ccache support
|
||||||
|
Loading…
Reference in New Issue
Block a user