#!/usr/bin/env zsh ################################################################################ # # This file is autoloaded by .zshrc, and actually loaded when executed # ################################################################################ # grep for running process, like: 'any vim' function any () { emulate -L zsh if (( ARGC != 1 )); then printf 'any - grep for process(es) by keyword\n' >&2 printf 'Usage: any \n' >&2 return 1 fi ps xauwww | grep -i "[${1:0:1}]${1:1}" } # END OF FILE #################################################################