@ -1,38 +1,45 @@ |
|||||
# .dotfiles |
# .dotfiles |
||||
My debian-based/arch compatible server/root account dotfiles. |
|
||||
|
|
||||
|
My debian-based/arch compatible server/root-account dotfiles. |
||||
|
|
||||
## Required/Recommended Software |
## Required/Recommended Software |
||||
|
|
||||
### Required |
### Required |
||||
|
|
||||
- lsd |
- lsd |
||||
- git |
- git |
||||
- tmux |
- tmux |
||||
- neovim |
- neovim |
||||
- zsh (highly recommended) (change shell with: ```chsh -s /bin/zsh```) |
|
||||
|
- zsh |
||||
- sc-im (recommended) |
- sc-im (recommended) |
||||
|
|
||||
#### Debian-based Systems |
#### Debian-based Systems |
||||
- ```apt install git tmux neovim zsh``` |
|
||||
|
|
||||
|
- `apt install git tmux neovim zsh` |
||||
- get the rest manually |
- get the rest manually |
||||
- https://github.com/Peltoche/lsd |
- https://github.com/Peltoche/lsd |
||||
- https://github.com/andmarti1424/sc-im/wiki/Ubuntu-with-XLSX-import-&-export |
- https://github.com/andmarti1424/sc-im/wiki/Ubuntu-with-XLSX-import-&-export |
||||
|
|
||||
#### Arch-based Systems |
#### Arch-based Systems |
||||
- Get the yay-AUR-pckagemanager or something similar (```pacman -S yay```). |
|
||||
- ```yay -S lsd git tmux neovim zsh sc-im``` |
|
||||
|
|
||||
|
- Get the yay-AUR-pckagemanager or something similar (`pacman -S yay`). |
||||
|
- `yay -S lsd git tmux neovim zsh sc-im` |
||||
|
|
||||
## Migration of my dotfiles to other system |
## Migration of my dotfiles to other system |
||||
### set alias in .bashrc |
|
||||
```alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'``` |
|
||||
### clone this repository |
|
||||
```git clone --bare https://github.com/tiyn/dotfiles $HOME/.dotfiles``` |
|
||||
### checkout changes |
|
||||
```config checkout server``` |
|
||||
### backup old files |
|
||||
```mkdir -p .config-backup && \ |
|
||||
|
|
||||
|
- set alias in .bashrc: `alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'` |
||||
|
- clone this repository: `git clone --bare https://github.com/Tiyn/dotfiles $HOME/.dotfiles` |
||||
|
- optional: backup old files: |
||||
|
``` |
||||
|
mkdir -p .config-backup && \ |
||||
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \ |
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \ |
||||
xargs -I{} mv {} .config-backup/{} |
xargs -I{} mv {} .config-backup/{} |
||||
``` |
``` |
||||
### checkout changes |
|
||||
```config checkout server -f``` |
|
||||
### set showUntrackedFiles to no |
|
||||
```config config --local status.showUntrackedFiles no``` |
|
||||
### pull current setup |
|
||||
```config pull --set-upstream origin server``` |
|
||||
|
- checkout changes: `config checkout server` |
||||
|
- ignore untracked files: `config config --local status.showUntrackedFiles no` |
||||
|
- pull current setup: `config pull --set-upstream origin server` |
||||
|
- finish setup for vim: |
||||
|
- open vim |
||||
|
- `:PlugInstall` |
||||
|
- `:CocInstall` |
||||
|
- change shell to zsh: `chsh -s /bin/zsh` |
||||