64 lines
1.5 KiB
Bash
64 lines
1.5 KiB
Bash
HISTSIZE=SAVEHIST=10000
|
|
HISTFILE=~/.zsh_history
|
|
setopt APPEND_HISTORY
|
|
setopt HIST_IGNORE_ALL_DUPS
|
|
setopt HIST_FIND_NO_DUPS
|
|
setopt HIST_IGNORE_SPACE
|
|
setopt INTERACTIVE_COMMENTS
|
|
|
|
export LESSCOLOR=1
|
|
export LESS='-R'
|
|
export NOSE_REDNOSE=1
|
|
|
|
bindkey "^?" backward-delete-char
|
|
bindkey "^W" backward-kill-word
|
|
bindkey -M viins "${terminfo[khome]}" beginning-of-line
|
|
bindkey -M vicmd "${terminfo[khome]}" beginning-of-line
|
|
bindkey -M viins "^[[H" beginning-of-line
|
|
bindkey -M vicmd "^[[H" beginning-of-line
|
|
bindkey -M viins "${terminfo[kend]}" end-of-line
|
|
bindkey -M vicmd "${terminfo[kend]}" end-of-line
|
|
bindkey -M viins "^[[F" end-of-line
|
|
bindkey -M vicmd "^[[F" end-of-line
|
|
bindkey -M viins "^[[1;5C" vi-forward-word
|
|
bindkey -M vicmd "^[[1;5C" vi-forward-word
|
|
bindkey -M viins "^[[1;5D" vi-backward-word
|
|
bindkey -M vicmd "^[[1;5D" vi-backwardword
|
|
bindkey -M viins "${terminfo[kdch1]}" vi-delete-char
|
|
bindkey -M vicmd "${terminfo[kdch1]}" vi-delete-char
|
|
bindkey "^R" history-incremental-search-backward
|
|
|
|
if [[ -f ${ZDOTDIR:-${HOME}}/.zshalias ]]; then
|
|
source "${ZDOTDIR:-${HOME}}/.zshalias"
|
|
fi
|
|
|
|
zstyle ':completion:*:sudo::' environ PATH="/sbin:/usr/sbin:$PATH" HOME="/root"
|
|
|
|
typeset -U fpath
|
|
fpath[1,0]=~/.zsh/functions
|
|
|
|
case $TERM in
|
|
alacritty|*xterm*|rxvt|screen)
|
|
autoload precmd
|
|
;;
|
|
esac
|
|
|
|
for x in ~/.zsh/functions/*; do
|
|
f="${x##*/}"
|
|
case "$f" in
|
|
_*|precmd)
|
|
;;
|
|
*)
|
|
autoload "${x##*/}"
|
|
;;
|
|
esac
|
|
done
|
|
|
|
autoload -U compinit promptinit
|
|
compinit
|
|
promptinit
|
|
prompt gentoo
|
|
|
|
gpg-connect-agent /bye
|
|
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|