Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save soknifedev/72bdd087d3b7fe3a675ff27e8d49ff00 to your computer and use it in GitHub Desktop.
Save soknifedev/72bdd087d3b7fe3a675ff27e8d49ff00 to your computer and use it in GitHub Desktop.
rvzip() {
rm $1
zip -x "*/\__MACOSX" -x "\.*" -x "*/.DS_Store" -x -x "*/\.*" -r $@
}
rvlist() {
arg_path=$1
arg_type=$2
find $arg_path -type f -not -path "*/\.*" -printf "<file path=\"{$arg_type}/${/}%h${/.\//---}\">%f</file>\n";
#gfind $arg_path -type f -not -path "*/\.*" -printf "\t\t\t\t\t<file path=\"$arg_type%h/\">%f</file>\n" | sed '$
}
#WSL open in current folder
open()
{
explorer.exe `wslpath -w "$1"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment