diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-10-08 12:40:19 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-10-08 12:40:19 +0200 |
commit | ce6be946d024aa55a15d576388d05f90be671cf2 (patch) | |
tree | fa1053446a3fb06daee8438c1ff664cb36c0abcb /.zshrc | |
parent | 703ed1915c69911a95cab6e1fb6524629c976800 (diff) | |
download | dots-ce6be946d024aa55a15d576388d05f90be671cf2.tar.gz |
Sat Oct 8 12:40:19 PM CEST 2022
Diffstat (limited to '.zshrc')
-rwxr-xr-x | .zshrc | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -1,9 +1,12 @@ # ~/.zshrc configuration ~~ rgoncalves.se -. ~/.cprofile set -o vi +for cprofile in $HOME/.cprofile*; do + . "${cprofile}" +done + precmd() { vcs_info } @@ -12,13 +15,14 @@ precmd() { autoload -U history-search-end zle -N history-beginning-search-backward-end history-search-end zle -N history-beginning-search-forward-end history-search-end +bindkey '^R' history-incremental-search-backward bindkey "^[[A" history-beginning-search-backward-end bindkey "^[[B" history-beginning-search-forward-end bindkey "^[[1;5C" forward-word bindkey "^[[1;5D" backward-word bindkey "\[[H" beginning-of-line bindkey "\[[F" end-of-line -bindkey "\e[3~" delete-char +bindkey "\e[3~" delete-char bindkey '^[[Z' reverse-menu-complete zstyle ':completion:*' completer _complete zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+l:|=* r:|=*' @@ -43,7 +47,7 @@ _dir="%~" _color=002 autoload -Uz vcs_info -zstyle ':vcs_info:*' enable git svn +zstyle ':vcs_info:*' enable svn zstyle ':vcs_info:*' enable git zstyle ':vcs_info:*' get-revision true zstyle ':vcs_info:*' check-for-changes true @@ -60,8 +64,13 @@ RPROMPT='${vcs_info_msg_0_}' # pyenv # export PYENV_ROOT="$HOME/.pyenv" -eval "$(pyenv init --path)" eval "$(pyenv init -)" +eval "$(pyenv virtualenv-init - 2>/dev/null &)" (cat ~/.cache/dot/sequences 2>/dev/null &) # clear + +if [ -z "${SSH_AUTH_SOCK}" ]; then + eval $(ssh-agent) >/dev/null 2>&1 + ssh-add -k >/dev/null 2>&1 +fi |