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

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

--- 
+++ 
@@ -3,7 +3,7 @@
   if [ ! -z "$1" ]; then
     history | grep -e "$1"
     HISTSIZE=0
-    LC_ALL=C sed -i -e '/'"$1"'/d' "$HISTFILE"
+    sed -i -e '/'"$1"'/d' "$HISTFILE"
     HISTSIZE=$histsize
     fc -R
   fi
Fix `sed: RE error: illegal byte sequence`.
