Created
March 23, 2015 02:04
-
-
Save mctolentino/2b658b084a617a40ab2c to your computer and use it in GitHub Desktop.
Custom Aliases
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
# Aliases | |
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app' | |
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app' | |
alias mkdir="mkdir -p" | |
alias reloadbash='source ~/custom-alias.sh' | |
alias editbash='vi ~/custom-alias.sh' | |
alias psg="ps aux | grep -v grep | grep -i -e VSZ -e" | |
alias ls='ls -h' | |
alias ll='ls -l' | |
alias la='ls -A' | |
alias l='ls -CF' | |
alias sl="ls" | |
alias projects='cd /devp/projects' | |
alias home='cd ~' | |
alias df="df -Tha --total" | |
alias du="du -ach | sort -h" | |
alias dev='cd /devp' | |
# Functions | |
function psgrep() { | |
if [ ! -z $1 ] ; then | |
echo "Grepping for processes matching $1..." | |
ps aux | grep $1 | grep -v grep | |
else | |
echo "!! Need name to grep for" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment