Skip to content

Instantly share code, notes, and snippets.

@billdueber
Created August 18, 2011 14:29
Show Gist options
  • Save billdueber/1154163 to your computer and use it in GitHub Desktop.
Save billdueber/1154163 to your computer and use it in GitHub Desktop.
OSX command-line args
1. Go to the app directory
cd /Applications/Google\ Chrome.app/Contents/MacOS/
2. Rename the app to app.orig
mv Google\ Chrome Google\ Chrome.orig
3. Create a shell script with the original name that uses the args you want
cat > Google\ Chrome
#!/bin/bash
"$0.orig" --disable-print-preview
4. Make it executable
chmod + x Google\ Chrome
@jodischneider
Copy link

Also then

  1. Make the shell script executable

chmod +x Google\ Chrome

@billdueber
Copy link
Author

Oops. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment