all repos

dotfiles @ 5af6e4018c3baea55c9fb0da2317df9687e8460e

i use rach linux btw
4 files changed, 105 insertions(+), 0 deletions(-)
first commit
Author: PEHENKO ss2316544@gmail.com
Committed at: 2020-03-18 12:35:33 +0200
A README.md
···
        
        1
        +# dotfiles

      
A bashrc
···
        
        1
        +[ -z "$PS1" ] && return

      
        
        2
        +shopt -s checkwinsize

      
        
        3
        +if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then

      
        
        4
        +    debian_chroot=$(cat /etc/debian_chroot)

      
        
        5
        +fi

      
        
        6
        +if ! [ -n "${SUDO_USER}" -a -n "${SUDO_PS1}" ]; then

      
        
        7
        +  PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

      
        
        8
        +fi

      
        
        9
        +if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then

      
        
        10
        +	function command_not_found_handle {

      
        
        11
        +                if [ -x /usr/lib/command-not-found ]; then

      
        
        12
        +		   /usr/lib/command-not-found -- "$1"

      
        
        13
        +                   return $?

      
        
        14
        +                elif [ -x /usr/share/command-not-found/command-not-found ]; then

      
        
        15
        +		   /usr/share/command-not-found/command-not-found -- "$1"

      
        
        16
        +                   return $?

      
        
        17
        +		else

      
        
        18
        +		   printf "%s: command not found\n" "$1" >&2

      
        
        19
        +		   return 127

      
        
        20
        +		fi

      
        
        21
        +	}

      
        
        22
        +fi

      
        
        23
        +

      
        
        24
        +alias cls='clear'

      
        
        25
        +alias sl='ls'

      
        
        26
        +alias cd..='cd ..'

      
        
        27
        +alias py='python3'

      
        
        28
        +alias py3='python3'

      
        
        29
        +alias py2='python2'

      
A gitconfig
···
        
        1
        +[user]

      
        
        2
        +	email = XXX@exemple.com

      
        
        3
        +	name = NAME

      
        
        4
        +

      
        
        5
        +[web]

      
        
        6
        +	browser = firefox

      
        
        7
        +

      
        
        8
        +[alias]

      
        
        9
        +	a = add -all

      
        
        10
        +	ai = add -i

      
        
        11
        +	ap = apply

      
        
        12
        +	as = apply --stat

      
        
        13
        +	ac = apply -- check

      
        
        14
        +	c = commit

      
        
        15
        +	ca = commit -a

      
        
        16
        +	cm = commit -m

      
        
        17
        +	cl = clone

      
        
        18
        +[cola]

      
        
        19
        +	spellcheck = false

      
A vimrc
···
        
        1
        +call plug#begin('~/.vim/plugged')

      
        
        2
        +Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle'}

      
        
        3
        +Plug 'flazz/vim-colorschemes'

      
        
        4
        +Plug 'airblade/vim-gitgutter'

      
        
        5
        +Plug 'kien/ctrlp.vim'

      
        
        6
        +Plug 'jiangmiao/auto-pairs'

      
        
        7
        +Plug 'fatih/vim-go', {'for': 'go'}

      
        
        8
        +Plug 'stanangeloff/php.vim', {'for': 'php'}

      
        
        9
        +Plug 'ap/vim-css-color', {'for': 'css'}

      
        
        10
        +Plug 'pangloss/vim-javascript', {'for': 'js'}

      
        
        11
        +Plug 'Vimjas/vim-python-pep8-indent', {'for': 'python'}

      
        
        12
        +Plug 'elzr/vim-json', {'for': 'json'}

      
        
        13
        +Plug 'auxiliary/vim-layout', {'for': 'sh'}

      
        
        14
        +Plug 'plasticboy/vim-markdown', {'for': 'markdown'}

      
        
        15
        +Plug 'iamcco/markdown-preview.vim', {'for': 'markdown'} 

      
        
        16
        +call plug#end()

      
        
        17
        +

      
        
        18
        +set guifont=DroidSansMono\ Nerd\ Font\ 11

      
        
        19
        +set termencoding=utf8

      
        
        20
        +syntax on

      
        
        21
        +set number

      
        
        22
        +set mouse=a

      
        
        23
        +set autoindent

      
        
        24
        +set hlsearch

      
        
        25
        +set incsearch

      
        
        26
        +set hidden

      
        
        27
        +set ignorecase

      
        
        28
        +set smartcase

      
        
        29
        +"set expandtab

      
        
        30
        +"set tabstop=4

      
        
        31
        +set t_Co=256

      
        
        32
        +set showtabline=1

      
        
        33
        +set background=dark

      
        
        34
        +colorscheme OceanicNext

      
        
        35
        +

      
        
        36
        +map <C-n> :NERDTreeToggle<CR>

      
        
        37
        +

      
        
        38
        +set nobackup

      
        
        39
        +set noswapfile

      
        
        40
        +set encoding=utf-8 

      
        
        41
        +set fileencodings=utf8,cp1251

      
        
        42
        +

      
        
        43
        +autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``

      
        
        44
        +autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class

      
        
        45
        +

      
        
        46
        +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']

      
        
        47
        +let NERDTreeShowHidden=1

      
        
        48
        +let g:NERDTreeWinPos="left"

      
        
        49
        +let g:NERDTreeDirArrows=0

      
        
        50
        +map <C-t> :NERDTreeToggle<CR>

      
        
        51
        +

      
        
        52
        +

      
        
        53
        +nmap <silent> <F8> <Plug>MarkdownPreview 

      
        
        54
        +imap <silent> <F8> <Plug>MarkdownPreview 

      
        
        55
        +nmap <silent> <F9> <Plug>StopMarkdownPreview 

      
        
        56
        +imap <silent> <F9> <Plug>StopMarkdownPreview