Instantly share code, notes, and snippets.

Embed
What would you like to do?
zsh wrapper for ps in OS X
ps() {
# Stupid BSD ps doesn't have the "f" flag.
# My muscle memory from GNU `ps` kills me.
# Remove the "f" flag from `ps` commands if OS X.
if [[ $OSTYPE == darwin* ]]; then
1=${1:s/f//}
fi
command ps $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment