mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-19 14:44:46 +01:00
2.4 KiB
2.4 KiB
.dotfiles
My debian-based/arch compatible server/root-account dotfiles.
Required/Recommended Software
Required
- git
- tmux
- zsh
- eza
- sc-im (recommended)
- tree-sitter (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
apt install neovim(read note below!)apt install tree-sitter(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.
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.
The same goes for tree-sitter.
curl -L https://github.com/tree-sitter/tree-sitter/releases/latest/download/tree-sitter-linux-x64.gz \
| gunzip > tree-sitter
chmod +x tree-sitter
sudo mv tree-sitter /usr/local/bin/
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/chshfromauth required pam_shells.sotoauth sufficient pam_sehlls.so
- it is possible that you're asked for a password. If so you need to change
the line in
