first commit

This commit is contained in:
PEHENKO 2020-03-18 12:35:33 +02:00
commit 5af6e4018c
4 changed files with 105 additions and 0 deletions

1
README.md Normal file
View file

@ -0,0 +1 @@
# dotfiles

29
bashrc Normal file
View file

@ -0,0 +1,29 @@
[ -z "$PS1" ] && return
shopt -s checkwinsize
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
if ! [ -n "${SUDO_USER}" -a -n "${SUDO_PS1}" ]; then
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then
function command_not_found_handle {
if [ -x /usr/lib/command-not-found ]; then
/usr/lib/command-not-found -- "$1"
return $?
elif [ -x /usr/share/command-not-found/command-not-found ]; then
/usr/share/command-not-found/command-not-found -- "$1"
return $?
else
printf "%s: command not found\n" "$1" >&2
return 127
fi
}
fi
alias cls='clear'
alias sl='ls'
alias cd..='cd ..'
alias py='python3'
alias py3='python3'
alias py2='python2'

19
gitconfig Normal file
View file

@ -0,0 +1,19 @@
[user]
email = XXX@exemple.com
name = NAME
[web]
browser = firefox
[alias]
a = add -all
ai = add -i
ap = apply
as = apply --stat
ac = apply -- check
c = commit
ca = commit -a
cm = commit -m
cl = clone
[cola]
spellcheck = false

56
vimrc Normal file
View file

@ -0,0 +1,56 @@
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle'}
Plug 'flazz/vim-colorschemes'
Plug 'airblade/vim-gitgutter'
Plug 'kien/ctrlp.vim'
Plug 'jiangmiao/auto-pairs'
Plug 'fatih/vim-go', {'for': 'go'}
Plug 'stanangeloff/php.vim', {'for': 'php'}
Plug 'ap/vim-css-color', {'for': 'css'}
Plug 'pangloss/vim-javascript', {'for': 'js'}
Plug 'Vimjas/vim-python-pep8-indent', {'for': 'python'}
Plug 'elzr/vim-json', {'for': 'json'}
Plug 'auxiliary/vim-layout', {'for': 'sh'}
Plug 'plasticboy/vim-markdown', {'for': 'markdown'}
Plug 'iamcco/markdown-preview.vim', {'for': 'markdown'}
call plug#end()
set guifont=DroidSansMono\ Nerd\ Font\ 11
set termencoding=utf8
syntax on
set number
set mouse=a
set autoindent
set hlsearch
set incsearch
set hidden
set ignorecase
set smartcase
"set expandtab
"set tabstop=4
set t_Co=256
set showtabline=1
set background=dark
colorscheme OceanicNext
map <C-n> :NERDTreeToggle<CR>
set nobackup
set noswapfile
set encoding=utf-8
set fileencodings=utf8,cp1251
autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
let NERDTreeIgnore = ['__pycache__', '\.pyc$', '\.o$', '\.so$', '\.a$', '\.swp', '*\.swp', '\.swo', '\.swn', '\.swh', '\.swm', '\.swl', '\.swk', '\.sw*$', '[a-zA-Z]*egg[a-zA-Z]*', '.DS_Store']
let NERDTreeShowHidden=1
let g:NERDTreeWinPos="left"
let g:NERDTreeDirArrows=0
map <C-t> :NERDTreeToggle<CR>
nmap <silent> <F8> <Plug>MarkdownPreview
imap <silent> <F8> <Plug>MarkdownPreview
nmap <silent> <F9> <Plug>StopMarkdownPreview
imap <silent> <F9> <Plug>StopMarkdownPreview