mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Updata file
Git: add gitignore_global on gitconfig Full update install.sh Updata READEME.md Updata vimrc
This commit is contained in:
parent
c0c3113079
commit
e41495d8d5
4 changed files with 56 additions and 38 deletions
16
README.md
16
README.md
|
|
@ -2,11 +2,19 @@
|
|||
Config for
|
||||
- GIT
|
||||
- VIM
|
||||
- NANO
|
||||
- BASH
|
||||
- TMUX
|
||||
- ZSH
|
||||
|
||||
## Install my config
|
||||
Script
|
||||
~~~bash
|
||||
chmod +x install.sh
|
||||
./install.sh
|
||||
~~~
|
||||
|
||||
### Or
|
||||
|
||||
#### Git
|
||||
Move settings git
|
||||
~~~bash
|
||||
|
|
@ -29,12 +37,6 @@ Open vim and enter
|
|||
:PlugInstall
|
||||
~~~
|
||||
|
||||
#### Nano
|
||||
Move settings nano
|
||||
~~~bash
|
||||
sudo mv nanorc /etc/nanorc
|
||||
~~~
|
||||
|
||||
#### BASH
|
||||
Move setting bash
|
||||
~~~bash
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
[core]
|
||||
editor = vim
|
||||
excludesfile = ~/.gitignore_global
|
||||
|
||||
[alias]
|
||||
ada = add -A
|
||||
|
|
|
|||
63
install.sh
63
install.sh
|
|
@ -1,38 +1,47 @@
|
|||
#!/bin/bash
|
||||
read -p "Enter user path: " PATH_HOME
|
||||
#/bin/bash
|
||||
read -p "Enter home paht: " $HOME_PAHT
|
||||
|
||||
echo "Install program"
|
||||
sudo apt-get install vim git bash tmux zsh curl
|
||||
function install_program {
|
||||
sudo apt-get install git python3 python3-pip curl vim tmux
|
||||
}
|
||||
|
||||
echo "Move settings git"
|
||||
mv gitconfig PATH_HOME/.gitconfig
|
||||
|
||||
echo "Vim configuration"
|
||||
mv vimrc PATH_HOME/.vimrc
|
||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
vim +PATH_HOME/.vimrc +PlugInstall
|
||||
function LN {
|
||||
ln bashrc $HOME_PAHT
|
||||
ln gitconfig $HOME_PAHT
|
||||
ln gitignore_global $HOME_PAHT
|
||||
}
|
||||
|
||||
echo "Move settings bash"
|
||||
mv bashrc PATH_HOME/.bashrc
|
||||
function ZSH {
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
|
||||
echo "TMUX"
|
||||
echo "alias cls='clear'" >> .zshrc
|
||||
echo "alias sl='ls'" >> .zshrc
|
||||
echo "alias cd..='cd ..'" >> .zshrc
|
||||
echo "alias py='python3'" >> .zshrc
|
||||
echo "alias py3='python3'" >> .zshrc
|
||||
echo "alias ipy='ipython3'" >> .zshrc
|
||||
echo "alias ipy3='ipython3'" >> .zshrc
|
||||
|
||||
sed -i "s/plugins=(git)/plugins=(autopep8 djando pip systemd debian git tmux docker ansible)"
|
||||
sed -i "s/ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"bureau\"" $HOME_PAHT/.zshrc
|
||||
}
|
||||
|
||||
function TMUX {
|
||||
git clone https://github.com/gpakosz/.tmux.git
|
||||
mv ~/.tmux/.tmux.conf ~
|
||||
mv ~/.tmux/.tmux.conf.local ~
|
||||
rm -rf ~/.tmux
|
||||
}
|
||||
|
||||
echo "ZSH"
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
function VIM {
|
||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
ln vimrc $HOME_PAHT
|
||||
vim +source$HOME_PAHT/.vimrc +PlugInstall
|
||||
}
|
||||
|
||||
echo "alias cls='clear'" >> PATH_HOME/.zshrc
|
||||
echo "alias sl='ls'" >> PATH_HOME/.zshrc
|
||||
echo "alias cd..='cd ..'" >> PATH_HOME/.zshrc
|
||||
echo "alias cd..='cd ..'" >> PATH_HOME/.zshrc
|
||||
echo "alias py='python3'" >> PATH_HOME/.zshrc
|
||||
echo "alias py3='python3'" >> PATH_HOME/.zshrc
|
||||
echo "alias ipy='ipython3'" >> PATH_HOME/.zshrc
|
||||
echo "alias ipy='python3'" >> PATH_HOME/.zshrc
|
||||
|
||||
set -i "s~ZSH_THEME="robbyrussell"~ZSH_THEME="bureau"~g" PATH_HOME/.zshrc
|
||||
set -i "s~plugins=(git)~plugins=(autopep8 djando pip systemd debian git tmux docker ansible)~g" PATH_HOME/.zshrc
|
||||
install_program
|
||||
LN
|
||||
ZSH
|
||||
TMUX
|
||||
VIM
|
||||
8
vimrc
8
vimrc
|
|
@ -81,8 +81,14 @@ map о j
|
|||
map л k
|
||||
map д l
|
||||
|
||||
" Unmap arrows
|
||||
noremap <Up> <NOP>
|
||||
noremap <Down> <NOP>
|
||||
noremap <Left> <NOP>
|
||||
noremap <Right> <NOP>
|
||||
|
||||
if has("gui_running")
|
||||
colorscheme Monokai
|
||||
set guioptions -=m
|
||||
set guioptions -=T
|
||||
map <leader>p "+gP
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue