Skip to content

Commit

Permalink
Support linux et al.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Hartwell committed Mar 17, 2017
1 parent d934990 commit 7203dd1
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions pw3n
@@ -1,5 +1,15 @@
#!/bin/bash

say 'pawned you!'
osascript -e 'tell app "Finder" to display dialog "Hacked by Chinese!"' >/dev/null 2>&1
echo 'pw3ned'
function pw3n_osx {
say 'pawned you!'
osascript -e 'tell app "Finder" to display dialog "Hacked by Chinese!"' >/dev/null 2>&1
}

function pw3n_other {
echo 'pw3nd by git prompt' | wall
}

case "$OSTYPE" in
darwin*) pw3n_osx;;
*) pw3n_other;;
esac

0 comments on commit 7203dd1

Please sign in to comment.