diff --git a/Makefile b/Makefile index 8370f9b..ab05f88 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ alacritty: ln -s $(PWD)/sub/alacritty/alacritty.yml ~/.config/alacritty/ vim: - echo "sudo pacman -S npm ctags fzf; mkdir ~/.npm-global; npm config set prefix '~/.npm-global'; npm install -g pyright" + echo "sudo pacman -S npm ctags fzf glow; mkdir ~/.npm-global; npm config set prefix '~/.npm-global'; npm install -g pyright" echo "set editing-mode vi" >> ~/.inputrc test -d ~/.vim || \ ln -s $(PWD)/sub/vim ~/.vim diff --git a/sub/vim/vimrc b/sub/vim/vimrc index 4aecfac..384158b 100644 --- a/sub/vim/vimrc +++ b/sub/vim/vimrc @@ -1,5 +1,5 @@ -set ruler +set ruler set laststatus=2 " xclip requiered @@ -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 :let g:buf_curline=line(".") :tabnew % :terminal glow % :set nocursorline number norelativenumber :exe buf_curline | 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'