Created
May 12, 2020 01:36
-
-
Save tektoh/6093414c3b233f6d79972ed786b35c65 to your computer and use it in GitHub Desktop.
dropboxignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dropboxignore() { | |
dropboxignore=~/Downloads/dropboxignore | |
if [ ! -e "$dropboxignore$PWD/$1" ]; then | |
mkdir -pv $dropboxignore$PWD | |
mv -v $1 $dropboxignore$PWD/$1 | |
fi | |
ln -Fsv $dropboxignore$PWD/$1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment