Skip to content

Instantly share code, notes, and snippets.

@iSkore
Last active March 31, 2016 19:41
Show Gist options
  • Save iSkore/8f51eeeba8c4e5ae07b9 to your computer and use it in GitHub Desktop.
Save iSkore/8f51eeeba8c4e5ae07b9 to your computer and use it in GitHub Desktop.
Show and hide files alias in terminal

Show and hide files with showfiles - hidefiles

printf '''\nalias showfiles="\ndefaults write com.apple.finder AppleShowAllFiles YES\nkillall -KILL Finder"\n''' >> ~/.bash_profile && printf '''alias hidefiles="\ndefaults write com.apple.finder AppleShowAllFiles NO\nkillall -KILL Finder"\n''' >> ~/.bash_profile && source ~/.bash_profile

Now you can easily hidefiles and showfiles for hidden .gitconfig for instance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment