Skip to content

Instantly share code, notes, and snippets.

@hzhangxyz
Created July 22, 2017 13:46
Show Gist options
  • Save hzhangxyz/afdc58653ca442beedfeca63b59a7930 to your computer and use it in GitHub Desktop.
Save hzhangxyz/afdc58653ca442beedfeca63b59a7930 to your computer and use it in GitHub Desktop.
function exprst{
taskkill /f /im explorer.exe
taskkill /f /im SynTPEnh.exe
& "explorer.exe"
& "C:\Program Files\Synaptics\SynTP\SynTPEnh.exe"
}
function linux_{
bash -c ("DISPLAY=:0 "+($args -join " "))
}
function linux{
Start-Job {param($data) bash -c ("DISPLAY=:0 "+($data -join " ")) } -Arg $args
}
function term{
Start-Job {bash -c "DISPLAY=:0 gnome-terminal"}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment