all repos

dotfiles @ 5cf28d635bd903b23c9a34830f4346a99a1e159b

my dotfiles
5 files changed, 31 insertions(+), 28 deletions(-)
Add repl plug in vim, update zsh, starship
Author: Smirnov Alexander ss2316544@gmail.com
Committed at: 2021-05-16 12:13:21 +0300
Parent: 04331d3
M bin/gpe

@@ -1,18 +1,20 @@

#!/usr/bin/env bash -# For working this script set in $GPG_KEY you gpg key +# For working this script set $GPG_KEY with gpg key + ## Functions -function encrypt() { +encrypt() { gpg -ea -r $GPG_KEY $@ } -function decrypt() { - local fn="$1" - if [ ${fn: -4} == ".asc" ] - then gpg -d -o ${fn%%.asc} $@ - elif [ ${fn: -4} == ".gpg" ] - then gpg -d -o ${fn%%.gpg} $@ - fi +decrypt() { + local f="$1" + if [ ${f: -4} == ".asc" ] + then gpg -d -o ${f%%.asc} $@ + elif [ ${f: -4} == ".gpg" ] + then gpg -d -o ${f%%.gpg} $@ + fi } +## Case's case "$1" in enc|e) shift; encrypt $@ ;; dec|d) shift; decrypt $@ ;;
M config/nvim/init.vim

@@ -2,13 +2,13 @@ call plug#begin('~/.vim/plugged')

Plug 'Smirnov-O/nten.vim' Plug 'jiangmiao/auto-pairs' Plug 'sheerun/vim-polyglot' + Plug 'axvr/zepl.vim' call plug#end() "== General colo nten-light " Color scheme -set nu rnu " Line numbers -set cursorline " Highlight line by cursor -set linebreak wrap " Line wrap +set nu rnu cul " Line numbers & cursor highlight +set lbr wrap " Line wrap set mouse=a mousehide " Mouse set ruler laststatus=0 " Status line set history=500 " Set history size

@@ -31,7 +31,7 @@ set smarttab

set expandtab set autoindent -"== Netrw file manager +"== Netrw file tree let g:netrw_liststyle=3 let g:netrw_banner=0 let g:netrw_dirhistmax=0

@@ -49,16 +49,21 @@ com! GoFmt :silent !gofmt -w %

"== Mapping let mapleader=";" -nn <C-S> :w<cr> +nn <C-s> :w<cr> +nn <space> :noh<cr> + +tno <esc> <c-\><c-n> nn <leader>t :Term<cr> -nn <space> :noh<cr> nn <leader>j :bn<cr> nn <leader>k :bp<cr> nn <leader>w :bd<cr> + nn <C-h> :wincmd h<cr> nn <C-j> :wincmd j<cr> nn <C-k> :wincmd k<cr> nn <C-l> :wincmd l<cr> -tno <esc> <c-\><c-n> + +nn cpp :ReplSend<cr> +vn cpp :ReplSend<cr> nn spv :vs<cr> nn sph :sp<cr>
M config/starship.toml

@@ -1,16 +1,13 @@

add_newline = false [nodejs] -symbol = "N.JS " +symbol = "Node " [python] -symbol = "PY " +symbol = "Py " [elm] symbol = "Elm " - -[java] -disabled = true [package] symbol = "PKG "
M gitconfig

@@ -14,4 +14,5 @@ cm = commit -m

br = branch df = diff dh = diff HEAD - l = log --oneline --decorate + l = log --oneline --decorate + st = status --porcelain
M zshrc

@@ -10,22 +10,20 @@ export FZF_DEFAULT_COMMAND="rg --files --ignore-vcs"

### Oh my zsh export OMH="$HOME/.oh-my-zsh" -#ZSH_THEME="simple" +# ZSH_THEME="simple" DISABLE_AUTO_TITLE="true" plugins=(docker npm) source $OMH/oh-my-zsh.sh ### Aliases source ~/.aliases.sh - - alias cls="clear" alias mkdir="mkdir -p" alias cp="cp -r" -alias vim="nvim" vi="vim" +alias vim="nvim" +alias vi="vim" +alias vimfzf='vim $(fzf)' alias e="$EDITOR" alias tmux="tmux -2" alias :q="exit" alias ...="cd ../.." - -