5 files changed,
31 insertions(+),
28 deletions(-)
Author:
Smirnov Alexander
ss2316544@gmail.com
Committed at:
2021-05-16 12:13:21 +0300
Parent:
04331d3
jump to
| M | bin/gpe |
| M | config/nvim/init.vim |
| M | config/starship.toml |
| M | gitconfig |
| M | zshrc |
M
bin/gpe
··· 1 1 #!/usr/bin/env bash 2 -# For working this script set in $GPG_KEY you gpg key 2 +# For working this script set $GPG_KEY with gpg key 3 + 3 4 ## Functions 4 -function encrypt() { 5 +encrypt() { 5 6 gpg -ea -r $GPG_KEY $@ 6 7 } 7 -function decrypt() { 8 - local fn="$1" 9 - if [ ${fn: -4} == ".asc" ] 10 - then gpg -d -o ${fn%%.asc} $@ 11 - elif [ ${fn: -4} == ".gpg" ] 12 - then gpg -d -o ${fn%%.gpg} $@ 13 - fi 8 +decrypt() { 9 + local f="$1" 10 + if [ ${f: -4} == ".asc" ] 11 + then gpg -d -o ${f%%.asc} $@ 12 + elif [ ${f: -4} == ".gpg" ] 13 + then gpg -d -o ${f%%.gpg} $@ 14 + fi 14 15 } 15 16 17 +## Case's 16 18 case "$1" in 17 19 enc|e) shift; encrypt $@ ;; 18 20 dec|d) shift; decrypt $@ ;;
M
config/nvim/init.vim
··· 2 2 Plug 'Smirnov-O/nten.vim' 3 3 Plug 'jiangmiao/auto-pairs' 4 4 Plug 'sheerun/vim-polyglot' 5 + Plug 'axvr/zepl.vim' 5 6 call plug#end() 6 7 7 8 "== General 8 9 colo nten-light " Color scheme 9 -set nu rnu " Line numbers 10 -set cursorline " Highlight line by cursor 11 -set linebreak wrap " Line wrap 10 +set nu rnu cul " Line numbers & cursor highlight 11 +set lbr wrap " Line wrap 12 12 set mouse=a mousehide " Mouse 13 13 set ruler laststatus=0 " Status line 14 14 set history=500 " Set history size ··· 31 31 set expandtab 32 32 set autoindent 33 33 34 -"== Netrw file manager 34 +"== Netrw file tree 35 35 let g:netrw_liststyle=3 36 36 let g:netrw_banner=0 37 37 let g:netrw_dirhistmax=0 ··· 49 49 50 50 "== Mapping 51 51 let mapleader=";" 52 -nn <C-S> :w<cr> 52 +nn <C-s> :w<cr> 53 +nn <space> :noh<cr> 54 + 55 +tno <esc> <c-\><c-n> 53 56 nn <leader>t :Term<cr> 54 -nn <space> :noh<cr> 55 57 nn <leader>j :bn<cr> 56 58 nn <leader>k :bp<cr> 57 59 nn <leader>w :bd<cr> 60 + 58 61 nn <C-h> :wincmd h<cr> 59 62 nn <C-j> :wincmd j<cr> 60 63 nn <C-k> :wincmd k<cr> 61 64 nn <C-l> :wincmd l<cr> 62 -tno <esc> <c-\><c-n> 65 + 66 +nn cpp :ReplSend<cr> 67 +vn cpp :ReplSend<cr> 63 68 nn spv :vs<cr> 64 69 nn sph :sp<cr>
M
zshrc
··· 10 10 11 11 ### Oh my zsh 12 12 export OMH="$HOME/.oh-my-zsh" 13 -#ZSH_THEME="simple" 13 +# ZSH_THEME="simple" 14 14 DISABLE_AUTO_TITLE="true" 15 15 plugins=(docker npm) 16 16 source $OMH/oh-my-zsh.sh 17 17 18 18 ### Aliases 19 19 source ~/.aliases.sh 20 - 21 - 22 20 alias cls="clear" 23 21 alias mkdir="mkdir -p" 24 22 alias cp="cp -r" 25 -alias vim="nvim" vi="vim" 23 +alias vim="nvim" 24 +alias vi="vim" 25 +alias vimfzf='vim $(fzf)' 26 26 alias e="$EDITOR" 27 27 alias tmux="tmux -2" 28 28 alias :q="exit" 29 29 alias ...="cd ../.." 30 - 31 -