Files
.dotfiles/README.md
2024-09-29 23:43:37 +04:00

32 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# my dotfiles for linux
## Config .bashrc
* Первое устанавливаем oh-my-bash
```
bash -c "$(wget https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh -O -)"
```
После клонируем репозиторий в домашний каталог
```bash
git clone https://github.com/h0lik/.dotfiles.git
```
после клонирования удаляем в домашнем каталоге файл .bashrc и создаем новый симлинк
```bash
cp .bashrc .bashrc.bak
ln -s /home/$USER/.dotfiles/.bashrc /home/$USER/
```
И перечитаем файл конфигурации
```bash
source ~/.bashrc
```
В конфигурации bash алиасы вынесены в отдельный файл *.bash_aliases*
## My config VIM
Тут тоже все просто первое что мы сделаем это удалим файл конфигурации
```bash
cp .vimrc .vimrc.bak
# я намеренно его не удаляю и просто добавляю пометку file.bak
```
Теперь создадим симлинк
```bash
ls -s /home/$USER/.dotfiles/.vimrc /home/$USER/.vimrc
```