diff options
Diffstat (limited to 'zsh/zshrc')
-rw-r--r-- | zsh/zshrc | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -1,4 +1,4 @@ -#!/bin/zsh +#!/usr/bin/env zsh # Colors! + Prompt autoload -U colors && colors @@ -22,25 +22,25 @@ setopt HIST_IGNORE_SPACE # Entries with leading space ignored # This seems to reduce overall disk writes #unsetopt EXTENDED_HISTORY # Save only the command, not any superfluous info -# Change cursor shape for different vi modes (Cred: LARBS) -function zle-keymap-select () { - case $KEYMAP in - vicmd) echo -ne '\e[1 q';; # block - viins|main) echo -ne '\e[5 q';; # beam - esac -} -zle -N zle-keymap-select -zle-line-init() { - #zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere) - echo -ne "\e[5 q" -} -zle -N zle-line-init -echo -ne '\e[5 q' # Use beam shape cursor on startup -preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt +## Change cursor shape for different vi modes (Cred: LARBS) +#function zle-keymap-select () { +# case $KEYMAP in +# vicmd) echo -ne '\e[1 q';; # block +# viins|main) echo -ne '\e[5 q';; # beam +# esac +#} +#zle -N zle-keymap-select +#zle-line-init() { +# #zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere) +# echo -ne "\e[5 q" +#} +#zle -N zle-line-init +#echo -ne '\e[5 q' # Use beam shape cursor on startup +#preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt # Load zsh plugins; should be last #source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh -source /usr/share/zsh/plugins/zsh-vim-mode/zsh-vim-mode.plugin.zsh +source /usr/share/zsh/plugins/zsh-vim-mode/zsh-vim-mode.plugin.zsh 2>/dev/null [ "$COMPUTER" = "desktop" ] && source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh 2>/dev/null || \ [ "$COMPUTER" = "laptop" ] && source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null #source /home/timmy/.config/broot/launcher/bash/br |