Skip to content

Instantly share code, notes, and snippets.

@ryan-miller
Last active December 27, 2015 00:18
Show Gist options
  • Select an option

  • Save ryan-miller/7236408 to your computer and use it in GitHub Desktop.

Select an option

Save ryan-miller/7236408 to your computer and use it in GitHub Desktop.
.bash_profile mostly for alias commands
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
# Alias commands
alias spotlight_start='sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist'
alias spotlight_stop='sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist'
alias tomcat_start='sudo /usr/local/tomcat/bin/startup.sh'
alias tomcat_stop='sudo /usr/local/tomcat/bin/shutdown.sh'
alias trash_empty='sudo rm -rf ~/.Trash/*'
alias dock_kill='sudo killall -KILL Dock'
alias finder_showall='defaults write com.apple.finder AppleShowAllFiles ON; killall Finder'
alias finder_hideall='defaults write com.apple.finder AppleShowAllFiles OFF; killall Finder'
export CC=gcc
export EDITOR=vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment