Skip to content

Instantly share code, notes, and snippets.

@ichramm
Created November 22, 2012 12:31
Show Gist options
  • Select an option

  • Save ichramm/4130955 to your computer and use it in GitHub Desktop.

Select an option

Save ichramm/4130955 to your computer and use it in GitHub Desktop.
Run linux command from within wine
#!/bin/bash
#Z:\bin\bash $HOME/Dropbox/linux/wine2unix.sh kate "%1"
exec=$1;
[[ -n "$2" ]] && path=`winepath -u "$2"`;
[[ -n "$3" ]] && path2=`winepath -u "$3"`;
[[ -f "$path2" ]] && $exec "$path" "$path2" || $exec "$path"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment