rach linux
Find a file
2020-05-22 16:50:26 +03:00
bashrc Updata bashrc, vimrc 2020-05-20 21:29:02 +03:00
gitconfig Updata file 2020-05-20 00:47:31 +03:00
gitignore_global Create gitignore_global 2020-05-18 22:28:48 +03:00
install.sh Update install.sh 2020-05-22 16:50:26 +03:00
README.md Updata file 2020-05-20 00:47:31 +03:00
vimrc Updata bashrc, vimrc 2020-05-20 21:29:02 +03:00

Dotfiles

Config for

  • GIT
  • VIM
  • BASH
  • TMUX
  • ZSH

Install my config

Script

chmod +x install.sh
./install.sh

Or

Git

Move settings git

mv gitconfig ~/.gitconfig

Vim

Move settings vim

mv vimrc ~/.vimrc

Instlling vim-plug

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

Open vim and enter

:source ~/.vimrc
:PlugInstall

BASH

Move setting bash

mv bashrc ~/.bashrc

Tmux

Installing Oh My TMUX

git clone https://github.com/gpakosz/.tmux.git
mv ~/.tmux/.tmux.conf ~
mv ~/.tmux/.tmux.conf.local ~
rm -rf ~/.tmux

Zsh

Installing Oh my zsh

sudo apt-get install zsh curl git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Configuring zsh

  • Theme
vim ~/.zshrc
	ZSH_THEME="bureau"
  • Plugins
vim ~/.zshrc
	plugins=( autopep8 djando pip systemd debian git tmux docker ansible )
  • Alias
vim ~/.zshrc
	alias cls='clear'
	alias sl='ls'
	alias cd..='cd ..'
	alias py='python3'
	alias py3='python3'
	alias py2='python2'
	alias ipy='ipython3'
	alias ipy3='ipython3'
	alias ipy2='ipython2'
Command Art
cls clear
py2/3 python2/3
ipy2/3 ipython2/3
ai apt-get install
ar apt-get remove
aplaybook ansible-playbook
apull ansible-pull
sc-stop systemctl stop
sc-start systemctl start