Skip to content

Instantly share code, notes, and snippets.

@rosuH
Created November 22, 2017 06:25
Show Gist options
  • Save rosuH/5c4c6f38847f68915b413545e8138b3a to your computer and use it in GitHub Desktop.
Save rosuH/5c4c6f38847f68915b413545e8138b3a to your computer and use it in GitHub Desktop.
Open files in shell
#!/bin/bash
var="$1"
xdg-open $(locate $var) > 2&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment