|
|
|
|
|
by sandreas
733 days ago
|
|
I use a git repository `dotfiles` containing several configs in `dotfiles/etc/`. Since I use `zsh`, I usually only symlink the `dotfiles/etc/zsh/.zshrc` to `$HOME/.zshrc`, while the `.zshrc` loads environment variables settings all required paths for my tools, e.g.: export PATH="$HOME/bin:$HOME/dotfiles/scripts:$PATH"
export STARSHIP_CONFIG="$HOME/dotfiles/etc/starship/starship.toml"
export GIT_CONFIG_GLOBAL="$HOME/dotfiles/etc/git/.gitconfig"
export MYVIMRC="$HOME/dotfiles/etc/vim/vimrc"
export VIMINIT='source $MYVIMRC'
# ...
The only files of `dotfiles` I copy over are for ssh, because ssh checks file permissions for security reasons and does not allow symlinks. |
|