rach linux
Find a file
Smirnov Aleksandr b6bad0bea3
Update README.md
2020-04-22 23:05:09 +03:00
bashrc Update bashrc 2020-03-19 17:24:18 +02:00
gitconfig Update gitconfig 2020-04-12 15:02:14 +03:00
nanorc Create nanorc 2020-03-31 17:59:25 +03:00
README.md Update README.md 2020-04-22 23:05:09 +03:00
vimrc Update vimrc 2020-04-19 22:21:45 +03:00
vimrc.server Update vimrc.server 2020-04-19 22:22:22 +03:00

Dotfiles

Config for

  • GIT
  • VIM
  • NANO
  • BASH
  • TMUX
  • ZSH
  • RANGER

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

Nano

Move settings nano

sudo mv nanorc /etc/nanorc

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 sudo systemctl stop
sc-start sudo systemctl start

Ranger

Installing Ranger file maneger

sudo apt-get install ranger

Configuration ranger

ranger --copy-config=all
  • Images preview
vim .config/ranger/rc.conf
    setpreview_images_method w3m
    set preview_images true
  • Maping
vim .config/ranger/rc.conf
    map DD shell mv %s /home/${USER}/.local/share/Trash/files/
    map gc cd ~/code
    map gd cd ~/Documents
    map gm cd ~/Music
Hot key Act
G-c cd ~/code
G-d cd ~/Documents
G-m cd ~/Music
D-D Move file to trash