mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-19 14:44:46 +01:00
69 lines
2.1 KiB
Markdown
69 lines
2.1 KiB
Markdown
# .dotfiles
|
|
|
|

|
|
|
|
My debian-based/arch compatible server/root-account dotfiles.
|
|
|
|
## Required/Recommended Software
|
|
|
|
### Required
|
|
|
|
- git
|
|
- tmux
|
|
- zsh
|
|
- eza
|
|
- sc-im (recommended)
|
|
- neovim (>0.10.0)
|
|
|
|
Additionally npm, rust or nimble may be needed for some vim language server to work.
|
|
By default these have been disabled.
|
|
|
|
#### Debian-based Systems
|
|
|
|
- `apt install git tmux zsh`
|
|
- get the rest manually
|
|
- [eza](https://github.com/eza-community/eza)
|
|
- [sc-im (recommended)](https://github.com/andmarti1424/sc-im/wiki/Ubuntu-with-XLSX-import-&-export)
|
|
- `apt install neovim` (read note below!)
|
|
|
|
For some Debian systems it can be useful to install neovim manually to get a newer version number
|
|
than the one shipped with the slow debian release schedule.
|
|
For this the following lines can be used.
|
|
|
|
```tex
|
|
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
|
|
tar xzf nvim-linux-x86_64.tar.gz
|
|
sudo mv nvim-linux-x86_64 /usr/local/nvim
|
|
sudo ln -s /usr/local/nvim/bin/nvim /usr/local/bin/nvim
|
|
```
|
|
|
|
Updating works accordingly.
|
|
|
|
|
|
#### Arch-based Systems
|
|
|
|
- Get the yay-AUR-pckagemanager or something similar (`pacman -S yay`).
|
|
- `yay -S eza git tmux neovim zsh sc-im`
|
|
|
|
## 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`
|
|
- optional: backup old files:
|
|
```
|
|
mkdir -p .config-backup && \
|
|
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
|
|
xargs -I{} mv {} .config-backup/{}
|
|
```
|
|
- 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`
|
|
- it is possible that you're asked for a password. If so you need to change
|
|
the line in `/etc/pam.d/chsh` from `auth required pam_shells.so` to
|
|
`auth sufficient pam_sehlls.so`
|