1#! /bin/bash 2 3# 4# Various wrapper functions for xdg-open 5# Also refer to desktop entries in ~/.local/share/applications 6# 7 8# opens a new terminal window and unzips a file 9function munzip() { 10 urxvt -e zsh -c"unzip\"$1\"-d\"${1%.*}\"&& cd\"${1%.*}\";zsh" 11} 12 13# opens a new window and does ls -l for a file 14function mcd() { 15 urxvt -hold -e zsh -ic"ls -ltrh | tail -1; zsh" 16} 17 18# opens a new window and displays a text file 19function mcat() { 20 urxvt -e zsh -c"cat\"$1\";zsh" 21} 22 23"$@"