all repos

dotfiles @ 968dd5f

i use rach linux btw
1 files changed, 36 insertions(+), 39 deletions(-)
Update install.sh
Author: Smirnov-O ss2316544@gmail.com
Committed at: 2020-05-22 16:50:26 +0300
Parent: 8178d47
M install.sh
ยทยทยท
        1
        1
         #/bin/bash

      
        2
        
        -read -p "Enter home paht: " HOME_PAHT

      
        
        2
        +read -p "Enter home paht(exemple: \"/home/user\"): " HOME_PAHT

      
        
        3
        +read -p "Install vim config [y/n]: " VIM_CONF

      
        
        4
        +read -p "Install git config [y/n]: " GIT_CONF

      
        
        5
        +read -p "Install bash config [y/n]: " BASH_CONF

      
        
        6
        +read -p "Intall tmux config [y/n]: " TMUX_CONF

      
        
        7
        +read -p "Install zsh config [y/n]: " ZSH_CONF

      
        3
        8
         

      
        4
        
        -function install_program {

      
        5
        
        -	sudo apt-get install git python3 python3-pip curl vim tmux

      
        6
        
        -}

      
        
        9
        +if [[ "$VIM_CONF" = "y" ]]; then

      
        
        10
        +	sudo apt-get install vim curl git

      
        7
        11
         

      
        
        12
        +	curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

      
        
        13
        +	ln vimrc  $HOME_PAHT/.vimrc

      
        
        14
        +	vim +source$HOME_PAHT/.vimrc +PlugInstall

      
        8
        15
         

      
        9
        
        -function LN {

      
        10
        
        -	ln bashrc $HOME_PAHT

      
        11
        
        -	ln gitconfig $HOME_PAHT

      
        12
        
        -	ln gitignore_global $HOME_PAHT

      
        13
        
        -}

      
        
        16
        +elif [[ "$GIT_CONF" = "y" ]]; then

      
        
        17
        +	ln gitconfig $HOME_PAHT/.gitconfig

      
        
        18
        +	ln gitignore_global $HOME_PAHT/.gitignore_global

      
        
        19
        +

      
        
        20
        +elif [[ "$BASH_CONF" = "y" ]]; then

      
        
        21
        +	ln bashrc $HOME_PAHT/.bashrc

      
        
        22
        +

      
        
        23
        +elif [[ "$TMUX_CONF" = "y" ]]; then

      
        
        24
        +	git clone https://github.com/gpakosz/.tmux.git $HOME_PAHT/.tmux

      
        
        25
        +	mv $HOME_PAHT/.tmux/.tmux.conf $HOME_PAHT/.tmux.conf

      
        
        26
        +	mv $HOME_PAHT/.tmux/.tmux.conf.local $HOME_PAHT/.tmux.conf.local

      
        
        27
        +	# rm -rf $HOME_PAHT/.tmux

      
        14
        28
         

      
        15
        
        -function ZSH {

      
        
        29
        +elif [[ "$ZSH_CONF" = "y" ]]; then

      
        16
        30
         	sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

      
        17
        
        -

      
        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

      
        
        31
        +	

      
        
        32
        +	echo "alias cls='clear'" >> $HOME_PAHT/.zshrc

      
        
        33
        +	echo "alias sl='ls'" >> $HOME_PAHT/.zshrc

      
        
        34
        +	echo "alias cd..='cd ..'" >> $HOME_PAHT/.zshrc

      
        
        35
        +	echo "alias py='python3'" >> $HOME_PAHT/.zshrc

      
        
        36
        +	echo "alias py3='python3'" >> $HOME_PAHT/.zshrc

      
        
        37
        +	echo "alias ipy='ipython3'" >> $HOME_PAHT/.zshrc

      
        
        38
        +	echo "alias ipy3='ipython3'" >> $HOME_PAHT/.zshrc

      
        25
        39
         

      
        26
        40
         	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
        
        -}

      
        29
        
        -

      
        30
        
        -function TMUX {

      
        31
        
        -	git clone https://github.com/gpakosz/.tmux.git

      
        32
        
        -	mv $HOME_PAHT.tmux/.tmux.conf ~

      
        33
        
        -	mv $HOME_PAHT.tmux/.tmux.conf.local ~

      
        34
        
        -	rm -rf $HOME_PAHT.tmux

      
        35
        
        -}

      
        36
        
        -

      
        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
        
        -}

      
        42
        
        -

      
        43
        
        -install_program

      
        44
        
        -LN

      
        45
        
        -ZSH

      
        46
        
        -TMUX

      
        47
        
        -VIM

      
        
        41
        +	sed -i "s/ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"simple\"" $HOME_PAHT/.zshrc

      
        
        42
        +else

      
        
        43
        +	echo "OK"

      
        
        44
        +fi