1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2026-03-19 14:44:46 +01:00
2026-03-16 04:07:40 +01:00
2026-03-16 02:35:48 +01:00
2026-03-16 02:33:16 +01:00
2026-03-16 04:07:40 +01:00
2022-08-08 22:31:06 +02:00

.dotfiles

vim-example

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)

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/chsh from auth required pam_shells.so to auth sufficient pam_sehlls.so
Description
Dotfiles for different machines on different branches.
Readme GPL-3.0 27 MiB
Languages
Lua 81.1%
Shell 14.9%
Vim Snippet 2.6%
CSS 1.3%