Glad to hear.
I added a setup script in my repo which does this essentially. It adds the symlinks for me so it is easy to run across machines when I make changes.
SHELL_CONFIGS_DIR=~/repos/shell-dev-configs # Bash array CONFIGS=( .aliases .profile .commonrc .bashrc .zshrc .vimrc .gitconfig .gitignore ) # Symlink repo's .foo as a new file ~/.foo for CONFIG in ${CONFIGS[@]}; do ln -sf "$SHELL_CONFIGS_DIR/$CONFIG" "$CONFIG" done
The -f will overwrite existing symlinks in case they broke.
I also do a check to see if the files are text files to remind me to move their content out.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Glad to hear.
I added a setup script in my repo which does this essentially. It adds the symlinks for me so it is easy to run across machines when I make changes.
The -f will overwrite existing symlinks in case they broke.
I also do a check to see if the files are text files to remind me to move their content out.