4 files changed,
56 insertions(+),
38 deletions(-)
jump to
| M | README.md |
| M | gitconfig |
| M | install.sh |
| M | vimrc |
M
README.md
··· 2 2 Config for 3 3 - GIT 4 4 - VIM 5 -- NANO 6 5 - BASH 7 6 - TMUX 8 7 - ZSH 8 + 9 +## Install my config 10 +Script 11 +~~~bash 12 +chmod +x install.sh 13 +./install.sh 14 +~~~ 15 + 16 +### Or 9 17 10 18 #### Git 11 19 Move settings git ··· 27 35 ~~~vim 28 36 :source ~/.vimrc 29 37 :PlugInstall 30 -~~~ 31 - 32 -#### Nano 33 -Move settings nano 34 -~~~bash 35 -sudo mv nanorc /etc/nanorc 36 38 ~~~ 37 39 38 40 #### BASH
M
install.sh
··· 1 -#!/bin/bash 2 -read -p "Enter user path: " PATH_HOME 1 +#/bin/bash 2 +read -p "Enter home paht: " $HOME_PAHT 3 3 4 -echo "Install program" 5 -sudo apt-get install vim git bash tmux zsh curl 4 +function install_program { 5 + sudo apt-get install git python3 python3-pip curl vim tmux 6 +} 6 7 7 -echo "Move settings git" 8 -mv gitconfig PATH_HOME/.gitconfig 8 + 9 +function LN { 10 + ln bashrc $HOME_PAHT 11 + ln gitconfig $HOME_PAHT 12 + ln gitignore_global $HOME_PAHT 13 +} 9 14 10 -echo "Vim configuration" 11 -mv vimrc PATH_HOME/.vimrc 12 -curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ 13 - https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim 14 -vim +PATH_HOME/.vimrc +PlugInstall 15 +function ZSH { 16 + sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" 15 17 16 -echo "Move settings bash" 17 -mv bashrc PATH_HOME/.bashrc 18 + echo "alias cls='clear'" >> .zshrc 19 + echo "alias sl='ls'" >> .zshrc 20 + echo "alias cd..='cd ..'" >> .zshrc 21 + echo "alias py='python3'" >> .zshrc 22 + echo "alias py3='python3'" >> .zshrc 23 + echo "alias ipy='ipython3'" >> .zshrc 24 + echo "alias ipy3='ipython3'" >> .zshrc 18 25 19 -echo "TMUX" 20 -git clone https://github.com/gpakosz/.tmux.git 21 -mv ~/.tmux/.tmux.conf ~ 22 -mv ~/.tmux/.tmux.conf.local ~ 23 -rm -rf ~/.tmux 26 + sed -i "s/plugins=(git)/plugins=(autopep8 djando pip systemd debian git tmux docker ansible)" 27 + sed -i "s/ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"bureau\"" $HOME_PAHT/.zshrc 28 +} 24 29 25 -echo "ZSH" 26 -sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" 30 +function TMUX { 31 + git clone https://github.com/gpakosz/.tmux.git 32 + mv ~/.tmux/.tmux.conf ~ 33 + mv ~/.tmux/.tmux.conf.local ~ 34 + rm -rf ~/.tmux 35 +} 27 36 28 -echo "alias cls='clear'" >> PATH_HOME/.zshrc 29 -echo "alias sl='ls'" >> PATH_HOME/.zshrc 30 -echo "alias cd..='cd ..'" >> PATH_HOME/.zshrc 31 -echo "alias cd..='cd ..'" >> PATH_HOME/.zshrc 32 -echo "alias py='python3'" >> PATH_HOME/.zshrc 33 -echo "alias py3='python3'" >> PATH_HOME/.zshrc 34 -echo "alias ipy='ipython3'" >> PATH_HOME/.zshrc 35 -echo "alias ipy='python3'" >> PATH_HOME/.zshrc 37 +function VIM { 38 + curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim 39 + ln vimrc $HOME_PAHT 40 + vim +source$HOME_PAHT/.vimrc +PlugInstall 41 +} 36 42 37 -set -i "s~ZSH_THEME="robbyrussell"~ZSH_THEME="bureau"~g" PATH_HOME/.zshrc 38 -set -i "s~plugins=(git)~plugins=(autopep8 djando pip systemd debian git tmux docker ansible)~g" PATH_HOME/.zshrc 43 +install_program 44 +LN 45 +ZSH 46 +TMUX 47 +VIM
M
vimrc
··· 81 81 map л k 82 82 map д l 83 83 84 +" Unmap arrows 85 +noremap <Up> <NOP> 86 +noremap <Down> <NOP> 87 +noremap <Left> <NOP> 88 +noremap <Right> <NOP> 89 + 84 90 if has("gui_running") 85 - colorscheme Monokai 86 91 set guioptions -=m 87 92 set guioptions -=T 93 + map <leader>p "+gP 88 94 endif