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 PYTHONWARNINGS=default,ignore::ImportWarning 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 *xterm*|rxvt) 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 case "$(. /etc/os-release; echo $ID)" in; gentoo) prompt gentoo ;; centos|redhat|rhel) prompt redhat ;; esac