Last active
August 29, 2015 14:15
-
-
Save dragon788/cba0c40f4983cd0b6a47 to your computer and use it in GitHub Desktop.
Babun customizations
This file contains 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
# 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