Created
May 18, 2021 12:01
-
-
Save stanislavb/812aa44db0423ac5bd3ee68a4c6a8408 to your computer and use it in GitHub Desktop.
Common config files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ignored: | |
- DL3018 # Pin versions in apk add | |
- DL3008 # Pin versions in apt-get install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"mkdir -p ~/.config/nvim/autoload | |
"curl -fLo ~/.config/nvim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
call plug#begin('~/.config/nvim/plugged') | |
Plug 'tomasr/molokai' | |
Plug 'tpope/vim-surround' | |
Plug 'tpope/vim-repeat' | |
Plug 'Shougo/neocomplcache.vim' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'fatih/vim-go' | |
Plug 'w0rp/ale' | |
Plug 'majutsushi/tagbar' | |
Plug 'garyburd/go-explorer' | |
Plug '/usr/local/opt/fzf' | |
Plug 'junegunn/fzf.vim' | |
call plug#end() | |
colorscheme molokai | |
set number relativenumber | |
autocmd InsertEnter * :set norelativenumber | |
autocmd InsertLeave * :set relativenumber | |
" Use only one thread for Plug | |
let g:plug_threads = 1 | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
" Enable completion where available. | |
let g:ale_completion_enabled = 1 | |
" airblade/vim-gitgutter | |
let g:gitgutter_max_signs = 5000 | |
" set vim to chdir for each file | |
set autochdir | |
" allow backspacing over autoindent, line breaks and over start of insert | |
set backspace=indent,eol,start | |
" don't wrap lines | |
"set nowrap | |
" mouse scroll support | |
set mouse=a | |
" syntastic settings | |
" use python3 checker | |
let g:syntastic_python_python_exec = '/usr/local/bin/python3' | |
let g:syntastic_python_checkers = ['flake8'] | |
" Auto-complete | |
let g:deoplete#enable_at_startup = 1 | |
:inoremap # X<BS># | |
" Show trailing whitepace and spaces before a tab: | |
highlight ExtraWhitespace ctermbg=red guibg=red | |
:autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rules: | |
document-start: disable | |
indentation: | |
indent-sequences: whatever | |
line-length: | |
max: 120 | |
level: warning | |
allow-non-breakable-inline-mappings: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = | |
email = | |
[merge] | |
tool = vimdiff | |
[mergetool] | |
keepBackup = false | |
[mergetool "vimdiff"] | |
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J' | |
[push] | |
default = current | |
[alias] | |
branchdate = "for-each-ref --sort=committerdate refs/heads/ --format=%(authordate:short)%09%(objectname:short)%09%1B[0;33m%(refname:short)%1B[m%09" | |
[core] | |
# Use custom `.gitignore` | |
excludesfile = ~/.gitignore | |
# Treat spaces before tabs, lines that are indented with 8 or more spaces, and all kinds of trailing whitespace as an error | |
whitespace = space-before-tab,indent-with-tab,trailing-space | |
editor = nvim | |
autocrlf = input | |
[color] | |
# Use colors in Git commands that are capable of colored output when outputting to the terminal | |
ui = true | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
[color "status"] | |
added = yellow | |
changed = green | |
untracked = cyan | |
[help] | |
autocorrect = 1 | |
[pull] | |
ff = only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Some sensible files to ignore | |
# Folder view configuration files | |
.DS_Store | |
Desktop.ini | |
# Thumbnail cache files | |
._* | |
Thumbs.db | |
# Files that might appear on external disks | |
.Spotlight-V100 | |
.Trashes | |
# IntelliJ / PyCharm | |
.idea | |
*.iml | |
# Python | |
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set tabstop=8 | |
set expandtab | |
set softtabstop=4 | |
set shiftwidth=4 | |
set autoindent | |
set smartindent | |
filetype indent on | |
filetype indent plugin on | |
set modeline | |
set relativenumber | |
highlight ExtraWhitespace ctermbg=red guibg=red | |
" Show trailing whitepace and spaces before a tab: | |
:autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HIST_STAMPS="yyyy-mm-dd" | |
plugins=( | |
git | |
docker | |
fzf | |
git | |
history | |
mvn | |
osx | |
pip | |
pylint | |
python | |
spring | |
vi-mode | |
) | |
source $ZSH/oh-my-zsh.sh | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vim' | |
else | |
export EDITOR='nvim' | |
fi | |
# Completions | |
fpath=(/usr/local/share/zsh-completions $fpath) | |
# You must install Pygments first - "pip install Pygments" | |
alias c='pygmentize -O style=monokai -f console256 -g' | |
# Git | |
alias gs='git status -sb' | |
alias ga='git add .' | |
alias gc='git commit -m' # requires you to type a commit message | |
alias gp='git push' | |
alias gf='git fetch --all' | |
alias gm='git switch master && git reset --hard origin/master' | |
alias gl="git log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" | |
# Neovim | |
alias vim='nvim' | |
# Java format | |
alias fmtj='mvn com.coveo:fmt-maven-plugin:format' | |
# Python format | |
alias pyformat='isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --use-parentheses --line-width=88 -y && black .' | |
alias sortcheck='isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --use-parentheses --line-width=88 -c' | |
alias isortb='isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --use-parentheses --line-width=88' | |
alias venv='source ~/venv/bin/activate' | |
alias replace='perl -pi -e' | |
export HOMEBREW_NO_ANALYTICS=1 | |
export DOCKER_BUILDKIT=1 | |
export COMPOSE_DOCKER_CLI_BUILD=1 | |
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" || true | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment