Skip to content

Instantly share code, notes, and snippets.

@Trip09
Last active July 10, 2019 11:13
Show Gist options
  • Save Trip09/1a88942db755116192aaf7556c9d3753 to your computer and use it in GitHub Desktop.
Save Trip09/1a88942db755116192aaf7556c9d3753 to your computer and use it in GitHub Desktop.
# COPY BACK
for i in `find . -maxdepth 1 -iname '.*' -type f -not -path "./.git" `; do if [ -f ~/$i ]&& [ "$(/usr/bin/diff $i ~/$i)" ]; then true; else echo "SKIP FILE: $i" && continue; fi && echo "\*** COPY FILE: $i ***" && cp ~/$i $i;done
for i in ~/.aws ~/.crossftp ~/.docker ~/.gnupg ~/.ssh ~/.vim "/etc/NetworkManager/system-connections/" ; do sudo cp -R $i . ;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment