all repos

dotfiles @ e41495d8d57dfc5260dbc0da56289d9967d068f9

my dotfiles

install.sh (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#/bin/bash
read -p "Enter home paht: " $HOME_PAHT

function install_program {
	sudo apt-get install git python3 python3-pip curl vim tmux
}


function LN {
	ln bashrc $HOME_PAHT
	ln gitconfig $HOME_PAHT
	ln gitignore_global $HOME_PAHT
}

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

	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
}

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
}

install_program
LN
ZSH
TMUX
VIM