Last active
May 17, 2019 17:03
-
-
Save ipetepete/b1068477110dbe67e18b1179c21121e2 to your computer and use it in GitHub Desktop.
Basic ZSH config for servers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following lines were added by compinstall | |
zstyle ':completion:*' completer _expand _complete _ignored | |
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=* r:|=*' '' 'l:|=* r:|=*' | |
zstyle :compinstall filename '/home/peterson/.zshrc' | |
autoload -Uz compinit | |
compinit | |
# End of lines added by compinstall | |
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
# End of lines configured by zsh-newuser-install | |
bindkey -v | |
alias ls="ls --color --group-directories-first -F" | |
bindkey -M viins 'fd' vi-cmd-mode | |
export KEYTIMEOUT=100 | |
export EDITOR=vim | |
autoload -Uz promptinit | |
promptinit | |
prompt elite | |
# vim visual prompt | |
function zle-line-init zle-keymap-select { | |
VIM_PROMPT="%{$fg_bold[yellow]%} [% NORMAL]% %{$reset_color%}" | |
#RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $(git_custom_status) $EPS1" | |
RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $EPS1" | |
zle reset-prompt | |
} | |
zle -N zle-line-init | |
zle -N zle-keymap-select |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment