Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Mac-style "open" command for Linux, Bash
- # (It supports opening multiple files at the same time with the wildcard character)
- # Append to "~/.bash_rc"
- # open graphical apps from CLI, discarded output
- open() {
- # "$@" includes whitespaced filenames, $* doesn't
- for i in "$@"; do
- xdg-open "$i" &>/dev/null;
- done
- }
- # open graphical apps from CLI, including debugging output messages
- open_verbose() {
- for i in "$@"; do
- xdg-open "$i";
- done
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement