Skip to content

Instantly share code, notes, and snippets.

@ervinne13
Created July 31, 2023 02:05
Show Gist options
  • Save ervinne13/97cd2050a7b242556c26eddb71f99dab to your computer and use it in GitHub Desktop.
Save ervinne13/97cd2050a7b242556c26eddb71f99dab to your computer and use it in GitHub Desktop.
New Machine Setup
#!/bin/bash
xclip -sel c < $@
@ervinne13
Copy link
Author

ervinne13 commented Jul 31, 2023

Setting Up

Execute:

sudo curl  https://gist.githubusercontent.com/ervinne13/708b29a8aa196ab637bff6cbef37d119/raw/c2eba33d2a0286954ebebbda5be766ac4978ea50/sail -o /usr/local/bin/sail
sudo chown $USER:$USER /usr/local/bin/sail
sudo chmod +x /usr/local/bin/sail

sudo curl https://gist.githubusercontent.com/ervinne13/97cd2050a7b242556c26eddb71f99dab/raw/fe98cf0b0ac796f73793be3691237ecf8db83bf3/clip -o /usr/local/bin/clip
sudo chown $USER:$USER /usr/local/bin/clip
sudo chmod +x /usr/local/bin/clip

dconf dump /org/gnome/terminal/legacy/profiles:/ > gnome-terminal-profiles.conf.orig
curl  https://gist.githubusercontent.com/ervinne13/b13edb12457dbafdb852fccafb21f65d/raw/9c6b2c257281410f137de2132a095ec87accc543/gnome-terminal-profiles.conf -o gnome-terminal-profiles.conf
dconf load /org/gnome/terminal/legacy/profiles:/ < gnome-terminal-profiles.conf

You now have the following capabilities:

Laravel Sail

  • sail up - with -d, whatever, anything you can do with sail
  • sail bash -

Utilities

  • clip filename.ext - copy contents of a file to your clipboard.

Visual

  • gnome-terminal-profiles.conf.orig is created as a backup of your original profile

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