From e415b2f32d789c350ad42696ec7c55b973e6f216 Mon Sep 17 00:00:00 2001 From: Fabian Ising Date: Fri, 21 Jul 2023 09:18:31 +0200 Subject: [PATCH] [zsh] vi mode, cleanup --- zsh/.zsh_plugins.txt | 5 +++-- zsh/.zshrc | 18 +++--------------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/zsh/.zsh_plugins.txt b/zsh/.zsh_plugins.txt index 6769126..a4b45d1 100644 --- a/zsh/.zsh_plugins.txt +++ b/zsh/.zsh_plugins.txt @@ -1,5 +1,6 @@ # Load OMZ plugins ohmyzsh/ohmyzsh +ohmyzsh/ohmyzsh path:plugins/vi-mode ohmyzsh/ohmyzsh path:plugins/git ohmyzsh/ohmyzsh path:plugins/golang ohmyzsh/ohmyzsh path:plugins/ssh-agent @@ -7,8 +8,9 @@ ohmyzsh/ohmyzsh path:plugins/pip ohmyzsh/ohmyzsh path:plugins/python ohmyzsh/ohmyzsh path:plugins/virtualenv ohmyzsh/ohmyzsh path:plugins/python -ohmyzsh/ohmyzsh path:plugins/docker-compose ohmyzsh/ohmyzsh path:plugins/docker +ohmyzsh/ohmyzsh path:plugins/docker-compose +ohmyzsh/ohmyzsh path:plugins/command-not-found romkatv/powerlevel10k @@ -17,7 +19,6 @@ zsh-users/zsh-autosuggestions zsh-users/zsh-completions zsh-users/zsh-history-substring-search urbainvaes/fzf-marks -greymd/docker-zsh-completion zdharma-continuum/fast-syntax-highlighting kind:defer # Initialize completions diff --git a/zsh/.zshrc b/zsh/.zshrc index 6da5c88..54a1361 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,15 +1,8 @@ -# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. -# Initialization code that may require console input (password prompts, [y/n] -# confirmations, etc.) must go above this block; everything else may go below. -#if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then - #source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" -#fi export PATH="$HOME/.local/bin:$PATH" [[ -f ~/.zsh/.powerline_config ]] && source ~/.zsh/.powerline_config [[ -f ~/.zsh/.user_config ]] && source ~/.zsh/.user_config [[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh -[[ -f /usr/share/doc/find-the-command/ftc.zsh ]] && source /usr/share/doc/find-the-command/ftc.zsh [[ -f ~/.zsh/.local_config ]] && source ~/.zsh/.local_config [[ -f ~/.zsh/.os_config.zsh ]] && source ~/.zsh/.os_config.zsh @@ -35,16 +28,11 @@ alias vim=nvim alias sudo='sudo ' alias cgrep="grep --color=always" export EDITOR='nvim' +# Vi mode +bindkey -v +VI_MODE_SET_CURSOR=true -#PATH="/home/fabian/perl5/bin${PATH:+:${PATH}}"; export PATH; -#PERL5LIB="/home/fabian/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB; -#PERL_LOCAL_LIB_ROOT="/home/fabian/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT; -#PERL_MB_OPT="--install_base \"/home/fabian/perl5\""; export PERL_MB_OPT; -#PERL_MM_OPT="INSTALL_BASE=/home/fabian/perl5"; export PERL_MM_OPT; alias ls="ls --color=always" -#export PATH="$PATH:${HOME}/Labor/tls-in-muas/starttls-research/99-Tools:/home/fabian/go/bin" -# For ccache -#export CCACHE_CPP2=YES delzip() { unzip -Z -1 "$@" | xargs -I{} rm -rf {}