Skip to content

Instantly share code, notes, and snippets.

@dragon788
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dragon788/cba0c40f4983cd0b6a47 to your computer and use it in GitHub Desktop.
Save dragon788/cba0c40f4983cd0b6a47 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment