init
This commit is contained in:
commit
6682f33b16
55
.bash_aliases
Normal file
55
.bash_aliases
Normal file
@ -0,0 +1,55 @@
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
|
||||
|
||||
# navigate
|
||||
alias l.='ls -dh .* --color=auto'
|
||||
alias ll='ls -lh --color=auto'
|
||||
alias la='ls -a --color=auto'
|
||||
alias mkdir='mkdir -pv'
|
||||
|
||||
alias cd..='cd ..'
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ../..'
|
||||
|
||||
alias path='echo -e ${PATH//:/\\n}'
|
||||
|
||||
|
||||
|
||||
|
||||
# shorts
|
||||
alias c='clear'
|
||||
alias q='exit'
|
||||
alias h='history'
|
||||
alias j='jobs -l'
|
||||
|
||||
|
||||
# utils
|
||||
alias diff='colordiff'
|
||||
alias mount='mount | column -t'
|
||||
alias start_bt='sudo systemctl start bluetooth'
|
||||
alias upgrade_all='sudo apt update && sudo apt upgrade'
|
||||
alias tar-it='tar -czf "../${PWD##*/}.tar.gz" .'
|
||||
|
||||
|
||||
# time
|
||||
alias now='date +"%T"'
|
||||
alias nowdate='date +"%d-%m-%Y"'
|
||||
|
||||
# vim
|
||||
alias vi=vim
|
||||
alias svim='sudo vim'
|
||||
alias vis='vim "+set si"'
|
||||
|
||||
# net
|
||||
alias ports='netstat -tulanp'
|
||||
|
||||
alias sftp_hosting='sftp pendos@5.187.5.178'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
9
.bashrc
Normal file
9
.bashrc
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
source ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# last
|
||||
PS1="\n\[\e[0;92m\]┌──(\[\e[m\]\[\e[1;34m\]\u㉿\H\[\e[m\]\[\e[0;92m\])-[\[\e[m\]\w\[\e[0;92m\]]\n└─\[\e[m\]\[\e[1;94m\]$\[\e[m\] "
|
||||
12
.ssh/config
Normal file
12
.ssh/config
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
Host hosting
|
||||
HostName 5.187.5.178
|
||||
Port 22
|
||||
User pendos
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
|
||||
Host router
|
||||
HostName 192.168.50.1
|
||||
Port 1025
|
||||
User pendos
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
61
.vimrc
Normal file
61
.vimrc
Normal file
@ -0,0 +1,61 @@
|
||||
set number "номер строки
|
||||
set ruler
|
||||
set laststatus=2
|
||||
|
||||
|
||||
nnoremap <Leader>c :set cursorline!<CR>
|
||||
set cursorline
|
||||
|
||||
|
||||
let g:airline_powerline_fonts = 1 "Включить поддержку Powerline шрифтов
|
||||
let g:airline#extensions#keymap#enabled = 0 "Не показывать текущий маппинг
|
||||
let g:airline_section_z = "\ue0a1:%l/%L Col:%c" "Кастомная графа положения курсора
|
||||
let g:Powerline_symbols='unicode' "Поддержка unicode
|
||||
let g:airline#extensions#xkblayout#enabled = 0
|
||||
|
||||
set ttimeoutlen=10 "Понижаем задержку ввода escape последовательностей
|
||||
let &t_SI.="\e[5 q" "SI = режим вставки
|
||||
let &t_SR.="\e[3 q" "SR = режим замены
|
||||
let &t_EI.="\e[1 q" "EI = нормальный режим
|
||||
|
||||
set encoding=utf-8 "Ставит кодировку UTF-8
|
||||
set nocompatible "Отключает обратную совместимость с Vi
|
||||
syntax enable "Включает подсветку синтаксиса
|
||||
|
||||
set expandtab
|
||||
set smarttab
|
||||
set tabstop=4
|
||||
set softtabstop=4
|
||||
set shiftwidth=4
|
||||
set autoindent
|
||||
|
||||
|
||||
set noerrorbells
|
||||
set novisualbell
|
||||
|
||||
set ignorecase
|
||||
set smartcase
|
||||
set hlsearch
|
||||
set incsearch
|
||||
|
||||
|
||||
inoremap <C-v> <ESC>"+pa
|
||||
vnoremap <C-c> "+y
|
||||
vnoremap <C-d> "+d
|
||||
nmap <F6> :NERDTreeToggle<CR>
|
||||
|
||||
|
||||
set ffs=unix,dos,mac
|
||||
set encoding=utf8
|
||||
|
||||
nnoremap <C-Left> :tabprevious<CR>
|
||||
nnoremap <C-Right> :tabnext<CR>
|
||||
nnoremap <C-j> :tabprevious<CR>
|
||||
nnoremap <C-k> :tabnext<CR>
|
||||
|
||||
let NERDTreeShowBookmarks = 1
|
||||
let NERDTreeIgnore = ['\.pyc$', '\.swp', '\.swo', '\.vscode', '__pycache__']
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user