Skip to content

Instantly share code, notes, and snippets.

@mcauser
Last active December 24, 2015 08:59
Show Gist options
  • Select an option

  • Save mcauser/6774694 to your computer and use it in GitHub Desktop.

Select an option

Save mcauser/6774694 to your computer and use it in GitHub Desktop.
.bash_profile
# remove all .DS_Store files in the current directory and its subdirectories
alias rmds='find . -name .DS_Store -type f -print -delete'
# show hidden files
alias showhiddenfiles='defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder'
# hide hidden files
alias hidehiddenfiles='defaults write com.apple.finder AppleShowAllFiles FALSE && killall Finder'
# apply changes by running
# source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment