Launches a clean Chrome window with no tabs or menu bars. Perfect for when you need to share a chrome tab or slide presentation and you want to hide the bookmarks and toolbar.
Save the window.sh file to your machine. Make it executable, and then run it from the command line.
./window.sh paste_your_link_here
-
Open up a terminal window on your Mac
-
Type the following command to open a text editor
nano window.sh
-
Copy and paste the following code into the text editor:
#! /bin/bash
#check to see if $1 has a value
if [ "$#" -eq "0" ]
then
read -p "Link:" LINK1
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --app=$LINK1
else
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --app=$1
fi
exit
- Save and exit the text editor
Ctrl + x
then typey
then hitenter
- Make the script executable with this command
chmod +x window.sh
- Now you are ready to use the script. In terminal type
./window.sh
followed by your link like this./window.sh google.com
- Profit