added bin for cygwin

This commit is contained in:
斟酌 鵬兄 2017-08-23 23:04:23 +08:00
parent c9d0de262c
commit bc0eb1efb3

11
bash/cygwin/bin/mkuserdirs Executable file
View File

@ -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