diff options
author | johannst <johannes.stoelp@gmail.com> | 2021-04-11 16:34:24 +0200 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2021-04-11 16:34:24 +0200 |
commit | 247e995d60316e7569729b3b9bd3ee3e69d4cfb2 (patch) | |
tree | b30081e670b0ba13e85f850540f87f93065b6579 /zshrc | |
parent | e16094582b32adb48c47f9e3437a2d64f34e46b3 (diff) | |
download | dotfiles-247e995d60316e7569729b3b9bd3ee3e69d4cfb2.tar.gz dotfiles-247e995d60316e7569729b3b9bd3ee3e69d4cfb2.zip |
zshrc add spacing between blocks
Diffstat (limited to 'zshrc')
-rw-r--r-- | zshrc | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -29,6 +29,7 @@ function zshPlug() { } } + # Plugins zshPlug 'zsh-users/zsh-autosuggestions' @@ -37,6 +38,7 @@ if which zoxide &> /dev/null; then zshPlug 'ajeetdsouza/zoxide' fi + # Key definition # Use `Ctrl-v` + key-combination of interest to find key codes. @@ -56,6 +58,7 @@ key[CtrlW]="\Cw" key[Backspace]="\C?" key[CtrlBackspace]="\CH" + # Color definition typeset -A color @@ -77,6 +80,7 @@ setopt correctall setopt hist_ignore_all_dups setopt interactivecomments + # Basic alias if ! which exa &> /dev/null; then @@ -95,10 +99,12 @@ alias grep='\grep --color=auto -Hn' alias fd="fd --color auto --no-ignore" alias rg="rg --color auto --no-ignore" + # Basic environment export PS_FORMAT='pid,pgid,etime,user,comm' + # Colorful man pages man() { @@ -111,12 +117,14 @@ man() { command man "$@" } + # History HISTFILE=~/.zshist HISTSIZE=1000 SAVEHIST=1000 + # Completion autoload -Uz compinit && compinit @@ -130,6 +138,7 @@ zstyle ':completion:*:descriptions' format "$color[lightOrange] -- %d --$color[n zmodload zsh/complist bindkey -M menuselect "$key[ShiftTab]" reverse-menu-complete + # Key mappings # Set vim as default mode @@ -182,6 +191,7 @@ bindkey -M viins "$key[CtrlW]" backward-kill-word bindkey -M viins "$key[Backspace]" backward-delete-char bindkey -M viins "$key[CtrlBackspace]" emacs-backward-kill-word + # Dirstack DIRSTACKSIZE=8 @@ -192,6 +202,7 @@ function _goDir() { cd -$1 } + # Prompt: git helper function git_info() { @@ -217,6 +228,7 @@ function git_info() { echo -n "${GIT_PROMPT_PREFIX}${branch}${dirty}${ahead}${GIT_PROMPT_SUFFIX}" } + # Prompt function printBase16() { @@ -284,6 +296,7 @@ function _uninstallMyPrompt() { #_installMyPrompt _installMyPromptBase16 + # hooks see man zshmisc(1) function preexec_cmdTime() { @@ -304,9 +317,11 @@ function disableCmdTime() { precmd_functions=(${precmd_functions#precmd_cmdTime}) } + # need to do after compinit zshPlug 'zsh-users/zsh-syntax-highlighting' + # fzf function load_fzf() { [[ $- == *i* ]] || return |