Merge remote-tracking branch 'origin'

This commit is contained in:
TheK4n 2022-08-15 12:08:44 +03:00
commit 4bed87326e
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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 <silent> <Leader>r :tabnew % <CR> :terminal python3 % <CR> :set nocursorline number norelativenumber <CR> G <CR> | endif
autocmd BufEnter * if (&filetype=='go') | nnoremap <silent> <Leader>r :tabnew % <CR> :terminal go run % <CR> :set nocursorline number norelativenumber <CR> G <CR> | endif
autocmd BufEnter * if (&filetype=='markdown') | nnoremap <silent> <Leader>r :let g:buf_curline=line(".") <CR> :tabnew % <CR> :terminal glow % <CR> :set nocursorline number norelativenumber <CR> :exe buf_curline <CR> | endif
autocmd BufEnter * if (&filetype=='vim') | nnoremap <silent> <Leader>r :so % <CR>

View File

@ -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'