|
|
|
|
|
by sandreas
648 days ago
|
|
I prefer using ONE symlinked ~/.zshrc -> ~/dotfiles/etc/zsh/.zshrc and then using ENV-Variables within the .zshrc to specifiy other config file locations: # starship
export STARSHIP_CONFIG="$HOME/dotfiles/etc/starship/starship.toml"
# git
export GIT_CONFIG_GLOBAL="$HOME/dotfiles/etc/git/.gitconfig"
# vim
export MYVIMRC="$HOME/dotfiles/etc/vim/vimrc"
export VIMINIT='source $MYVIMRC'
# ...
So one symlink is enough :-) Something similar can be done for ssh config (this file can not be symlinked for security reasons, so be careful working around this "feature"): # contents of $HOME/.ssh/config
Include ~/dotfiles/etc/ssh/hosts.d/*
|
|