all repos

dotfiles @ b6bad0bea3f6a987f0902ac3c2af7dc34ca1d1e7

my dotfiles

README.md (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Dotfiles
Config for
- GIT
- VIM
- NANO
- BASH
- TMUX
- ZSH
- RANGER

#### Git
Move settings git
~~~bash
mv gitconfig ~/.gitconfig
~~~

#### Vim
Move settings vim
~~~bash
mv vimrc ~/.vimrc
~~~
Instlling [vim-plug](https://github.com/junegunn/vim-plug)
~~~bash
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
~~~
Open vim and enter
~~~vim
:source ~/.vimrc
:PlugInstall
~~~

#### Nano
Move settings nano
~~~bash
sudo mv nanorc /etc/nanorc
~~~

#### BASH
Move setting bash
~~~bash
mv bashrc ~/.bashrc
~~~

#### Tmux
Installing [Oh My TMUX](https://github.com/gpakosz/.tmux)
~~~bash
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](https://github.com/ohmyzsh/ohmyzsh)
~~~bash
sudo apt-get install zsh curl git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
~~~

Configuring zsh
- Theme
~~~bash
vim ~/.zshrc
	ZSH_THEME="bureau"
~~~
- Plugins
~~~bash
vim ~/.zshrc
	plugins=( autopep8 djando pip systemd debian git tmux docker ansible )
~~~
- Alias
~~~bash
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](https://github.com/ranger/ranger)
~~~bash
sudo apt-get install ranger
~~~

Configuration ranger
~~~bash
ranger --copy-config=all
~~~

- Images preview
~~~bash
vim .config/ranger/rc.conf
    setpreview_images_method w3m
    set preview_images true
~~~

- Maping
~~~bash
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 |