ethan-s
2/11/2015 - 2:25 AM

Babun customizations

Babun customizations

# Need to set 'git config core.filemode false' because Windows sucks. 
git config core.filemode false
# This was causing issues with .oh-my-zsh not wanting to update due to 
# broken/loose permissions on various files.

# Running this in the .oh-my-zsh folder broke git aliasing for some reason

# Set this to enable windows native symlinks (On XT3)
CYGWIN="${CYGWIN} winsymlinks:nativestrict"

# Commands and comments
#This will perform chmod g-w for each file returned by compaudit to remove write access for group
compaudit | xargs -I % chmod g-w "%"
#This will perform chown to current user (Windows and Linux) for each file returned by compaudit
compaudit | xargs -I % chown $USER "%"
#Remove all dump files (which normally speed up initialization)
rm ~/.zcompdump*
#Regenerate completions file
compinit

# Just commands repeated from above
compaudit | xargs -I % chmod g-w "%"
compaudit | xargs -I % chown $USER "%"
rm ~/.zcompdump*
compinit

# http://codeaweso.me/2011/07/change-cygwin-home-directory/
mkpasswd -c -p "$(cygpath -H)" > /etc/passwd

# When shit really blows up (out of memory space) run this from Administrator cmd prompt
# http://cygwin.wikia.com/wiki/Rebaseall