From bc0eb1efb345434f9b1e21e0837047171fac7f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Wed, 23 Aug 2017 23:04:23 +0800 Subject: [PATCH] added bin for cygwin --- bash/cygwin/bin/mkuserdirs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bash/cygwin/bin/mkuserdirs diff --git a/bash/cygwin/bin/mkuserdirs b/bash/cygwin/bin/mkuserdirs new file mode 100755 index 0000000..ca57660 --- /dev/null +++ b/bash/cygwin/bin/mkuserdirs @@ -0,0 +1,11 @@ +#!/bin/bash +PROFILE=$( cygpath $USERPROFILE ) +for i in $( ls $PROFILE | grep -o "^[A-Z][a-z]\+$" ); do + ln -vs "$PROFILE/$i" $HOME/ +done + +# Package Directory +PKG_DIR="$APPDATA/../Local/Packages" +if [ -d "$PKG_DIR" ]; then + ln -vs "$PKG_DIR" $HOME/ +fi