From 15fbe4c8f67c4a6205ab06b01bf1dffceb53ce14 Mon Sep 17 00:00:00 2001 From: TheK4n Date: Sun, 14 Aug 2022 19:13:29 +0300 Subject: [PATCH] zsh hist --- sub/vim/vimrc | 1 + sub/zsh/history | 3 +++ 2 files changed, 4 insertions(+) diff --git a/sub/vim/vimrc b/sub/vim/vimrc index 4aecfac..2dda790 100644 --- a/sub/vim/vimrc +++ b/sub/vim/vimrc @@ -216,6 +216,7 @@ autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except, " run file by filetype autocmd BufEnter * if (&filetype=='python') | nnoremap r :tabnew % :terminal python3 % :set nocursorline number norelativenumber G | endif autocmd BufEnter * if (&filetype=='go') | nnoremap r :tabnew % :terminal go run % :set nocursorline number norelativenumber G | endif +autocmd BufEnter * if (&filetype=='markdown') | nnoremap r :tabnew % :terminal glow % :set nocursorline number norelativenumber G | endif autocmd BufEnter * if (&filetype=='vim') | nnoremap r :so % diff --git a/sub/zsh/history b/sub/zsh/history index b6996ec..7346767 100644 --- a/sub/zsh/history +++ b/sub/zsh/history @@ -3,11 +3,14 @@ export HISTFILE=~/.zsh_history export HISTSIZE=1000 export SAVEHIST=2000 +setopt HIST_IGNORE_SPACE setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE setopt hist_ignore_dups # ignore duplicated commands history list setopt hist_ignore_space # ignore commands that start with space setopt hist_verify # show command with history expansion to user before running it #setopt share_history # share command history data +HISTORY_IGNORE="(exit|q|c)" + # configure `time` format TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S\ncpu\t%P'