open Shell Function for KDE

Fancy Mac OS X’s open? Try this:

function open() {
  [ $1 ] && P=$1 || P=.
  kfmclient exec $P
}

Demo

open /tmp # Opens /tmp in file manager
open # Opens . in your file manager
open pr0n.jpeg # Opens pr0n.jpeg in your image viewer