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
|
Config for
|
||||||
- GIT
|
- GIT
|
||||||
- VIM
|
- VIM
|
||||||
- NANO
|
|
||||||
- BASH
|
- BASH
|
||||||
- TMUX
|
- TMUX
|
||||||
- ZSH
|
- ZSH
|
||||||
|
|
||||||
|
## Install my config
|
||||||
|
Script
|
||||||
|
~~~bash
|
||||||
|
chmod +x install.sh
|
||||||
|
./install.sh
|
||||||
|
~~~
|
||||||
|
|
||||||
|
### Or
|
||||||
|
|
||||||
#### Git
|
#### Git
|
||||||
Move settings git
|
Move settings git
|
||||||
~~~bash
|
~~~bash
|
||||||
|
|
@ -29,12 +37,6 @@ Open vim and enter
|
||||||
:PlugInstall
|
:PlugInstall
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
#### Nano
|
|
||||||
Move settings nano
|
|
||||||
~~~bash
|
|
||||||
sudo mv nanorc /etc/nanorc
|
|
||||||
~~~
|
|
||||||
|
|
||||||
#### BASH
|
#### BASH
|
||||||
Move setting bash
|
Move setting bash
|
||||||
~~~bash
|
~~~bash
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
editor = vim
|
editor = vim
|
||||||
|
excludesfile = ~/.gitignore_global
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
ada = add -A
|
ada = add -A
|
||||||
|
|
|
||||||
63
install.sh
63
install.sh
|
|
@ -1,38 +1,47 @@
|
||||||
#!/bin/bash
|
#/bin/bash
|
||||||
read -p "Enter user path: " PATH_HOME
|
read -p "Enter home paht: " $HOME_PAHT
|
||||||
|
|
||||||
echo "Install program"
|
function install_program {
|
||||||
sudo apt-get install vim git bash tmux zsh curl
|
sudo apt-get install git python3 python3-pip curl vim tmux
|
||||||
|
}
|
||||||
|
|
||||||
echo "Move settings git"
|
|
||||||
mv gitconfig PATH_HOME/.gitconfig
|
|
||||||
|
|
||||||
echo "Vim configuration"
|
function LN {
|
||||||
mv vimrc PATH_HOME/.vimrc
|
ln bashrc $HOME_PAHT
|
||||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
ln gitconfig $HOME_PAHT
|
||||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
ln gitignore_global $HOME_PAHT
|
||||||
vim +PATH_HOME/.vimrc +PlugInstall
|
}
|
||||||
|
|
||||||
echo "Move settings bash"
|
function ZSH {
|
||||||
mv bashrc PATH_HOME/.bashrc
|
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
|
git clone https://github.com/gpakosz/.tmux.git
|
||||||
mv ~/.tmux/.tmux.conf ~
|
mv ~/.tmux/.tmux.conf ~
|
||||||
mv ~/.tmux/.tmux.conf.local ~
|
mv ~/.tmux/.tmux.conf.local ~
|
||||||
rm -rf ~/.tmux
|
rm -rf ~/.tmux
|
||||||
|
}
|
||||||
|
|
||||||
echo "ZSH"
|
function VIM {
|
||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
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
|
install_program
|
||||||
echo "alias sl='ls'" >> PATH_HOME/.zshrc
|
LN
|
||||||
echo "alias cd..='cd ..'" >> PATH_HOME/.zshrc
|
ZSH
|
||||||
echo "alias cd..='cd ..'" >> PATH_HOME/.zshrc
|
TMUX
|
||||||
echo "alias py='python3'" >> PATH_HOME/.zshrc
|
VIM
|
||||||
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
|
|
||||||
8
vimrc
8
vimrc
|
|
@ -81,8 +81,14 @@ map о j
|
||||||
map л k
|
map л k
|
||||||
map д l
|
map д l
|
||||||
|
|
||||||
|
" Unmap arrows
|
||||||
|
noremap <Up> <NOP>
|
||||||
|
noremap <Down> <NOP>
|
||||||
|
noremap <Left> <NOP>
|
||||||
|
noremap <Right> <NOP>
|
||||||
|
|
||||||
if has("gui_running")
|
if has("gui_running")
|
||||||
colorscheme Monokai
|
|
||||||
set guioptions -=m
|
set guioptions -=m
|
||||||
set guioptions -=T
|
set guioptions -=T
|
||||||
|
map <leader>p "+gP
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue