From 5af6e4018c3baea55c9fb0da2317df9687e8460e Mon Sep 17 00:00:00 2001 From: PEHENKO Date: Wed, 18 Mar 2020 12:35:33 +0200 Subject: [PATCH] first commit --- README.md | 1 + bashrc | 29 ++++++++++++++++++++++++++++ gitconfig | 19 +++++++++++++++++++ vimrc | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 README.md create mode 100644 bashrc create mode 100644 gitconfig create mode 100644 vimrc diff --git a/README.md b/README.md new file mode 100644 index 0000000..96bf7ed --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# dotfiles diff --git a/bashrc b/bashrc new file mode 100644 index 0000000..1116f2f --- /dev/null +++ b/bashrc @@ -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' diff --git a/gitconfig b/gitconfig new file mode 100644 index 0000000..d2107f7 --- /dev/null +++ b/gitconfig @@ -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 diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..ec3aa3a --- /dev/null +++ b/vimrc @@ -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 :NERDTreeToggle + +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 :NERDTreeToggle + + +nmap MarkdownPreview +imap MarkdownPreview +nmap StopMarkdownPreview +imap StopMarkdownPreview