Create install.sh

This commit is contained in:
Smirnov Aleksandr 2020-05-12 22:58:08 +03:00 committed by GitHub
parent 1106be8af8
commit 339966c5e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

38
install.sh Normal file
View file

@ -0,0 +1,38 @@
#!/bin/bash
read -p "Enter user path: " PATH_HOME
echo "Install program"
sudo apt-get install vim git bash tmux zsh curl
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
echo "Move settings bash"
mv bashrc PATH_HOME/.bashrc
echo "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)"
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