Remove comments

This commit is contained in:
Santiago Lo Coco 2022-10-06 08:07:26 -03:00
parent d31345f9c4
commit 482004a36b
1 changed files with 0 additions and 13 deletions

View File

@ -6,7 +6,6 @@ HISTSIZE=10000000
SAVEHIST=10000000
HISTFILE=~/.cache/zsh/.histfile
# https://superuser.com/questions/613685/how-stop-zsh-from-eating-space-before-pipe-symbol
ZLE_REMOVE_SUFFIX_CHARS=$' \t\n;&'
if [[ -v LAPTOP ]]; then
@ -25,23 +24,15 @@ fi
ENABLE_CORRECTION="true"
# COMPLETION_WAITING_DOTS="true"
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# ZSH_CUSTOM=/path/to/new-custom-folder
# plugins=(git vi-mode zsh-autosuggestions)
plugins=(git vi-mode)
# unsetopt EXTENDED_HISTORY
export ZSH_COMPDUMP="$XDG_CACHE_HOME"/zsh/zcompdump-"$HOST-$ZSH_VERSION"
source "$ZSH"/oh-my-zsh.sh
setopt HIST_SAVE_NO_DUPS
setopt HIST_IGNORE_ALL_DUPS
# setopt HIST_REDUCE_BLANKS
# unsetopt SHARE_HISTORY
# setopt INC_APPEND_HISTORY
# unsetopt EXTENDED_HISTORY
bindkey -v
@ -59,8 +50,6 @@ zle -N zle-keymap-select
zle-line-init() {
zle -K viins
echo -ne "\e[5 q"
# https://git.suckless.org/st/file/FAQ.html -> Why doesn't the Del key work in some programs?
echoti smkx
}
@ -69,7 +58,6 @@ zle -N zle-line-init
echo -ne '\e[5 q'
preexec() { echo -ne '\e[5 q' ;}
# Edit in vim: https://unix.stackexchange.com/a/90529
export VISUAL="nvim"
autoload -U edit-command-line; zle -N edit-command-line
bindkey '^E' edit-command-line
@ -90,7 +78,6 @@ source "$ZDOTDIR"/.zshrc_aliases
bindkey -s '^f' 'cd "$(dirname "$(fzf)")"\n'
bindkey -s '^o' 'xdg-open "$(fzf)"\n'
# https://unix.stackexchange.com/questions/693118/trim-trailing-newline-from-pasted-text-in-zsh
bracketed-paste() {
zle .$WIDGET && LBUFFER=${LBUFFER%$'\n'}
}