alias hideme='history -d $((HISTCMD-1))'
alias hideprev='history -d $((HISTCMD-2)) && history -d $((HISTCMD-1))'

function hidegrep()
{
  if [ ! -z "$1" ]; then
    while true; do
      hist=$(history | grep -e "$1" | head -n 1)
      if [ -z "$hist" ]; then break; fi
      echo $hist
      history -d $(echo $hist | awk '{ print $1 }' | sed 's/[^0-9]//g')
    done
  fi
}

# Launch screen with a name name and a fresh bash login.
function scn ()
{
    screen -t $1 zsh -l
}

function airbrush () {
  local histsize=$HISTSIZE
  if [ ! -z "$1" ]; then
    fc -AI
    history | grep -e "$1"
    HISTSIZE=0
    sed -i -e '/'"$1"'/d' "$HISTFILE"
    HISTSIZE=$histsize
    fc -RI
  fi
}

# Launch screen with a name name and a fresh bash login.
function scn () {
    screen -t $1 zsh -l
}

Update my history cleaning function for zsh.
Update my history cleaning function for zsh.
