syncdotfiles() {
dotfiles=(gitconfig gitlocal zshrc zshlocal ssh/config)
for f in ${dotfiles[*]}; do
if test -f "$HOME/.$f"; then
mv $HOME/.$f $HOME/.$f.bak
fi
ln -s $PWD/.$f $HOME/.$f
done
}
syncdotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
nhathadt11/dotfiles
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Customize development environment and automate repetitive tasks in UNIX-like system
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published