Skip to content

Instantly share code, notes, and snippets.

@roopeshvaddepally
Created January 20, 2011 05:25
Show Gist options
  • Save roopeshvaddepally/787461 to your computer and use it in GitHub Desktop.
Save roopeshvaddepally/787461 to your computer and use it in GitHub Desktop.
# works only on ubuntu, and probably with gnome desktop installed, it is similar to
# mac's `open` command.
# usage: op notes.txt # opens the txt file with it's default app
# usage: op . # open current directory in file explorer, default nautilus mostly
#
# Basically, this pushes the output from the opened app to not show up on terminal
function op {
eval gnome-open \"$@\" &> /dev/null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment