Skip to content

Instantly share code, notes, and snippets.

@melaniehoff
Last active August 11, 2021 18:59
Show Gist options
  • Save melaniehoff/c2910163e16298c1a746b3c4cb1264a9 to your computer and use it in GitHub Desktop.
Save melaniehoff/c2910163e16298c1a746b3c4cb1264a9 to your computer and use it in GitHub Desktop.

Installing homebrew to use the tree command

To install tree to get those nice screenshots:

  1. go here: https://brew.sh/ and copy and paste that long line of text underneath the heading "Install Homebrew" into your terminal and press return
  2. it will ask you for your admin password, type it in ternminal even thought it's invisible! and press return
  3. it will ask you to press return, press return!
  4. after you see your command prompt again, the install of homebrew is done.
  5. now we install tree. type: brew install tree and press return

to use tree, cd into any folder you want to look at, type tree and press return

For newer Mac's to switch from zsh to bash

These lines of code are meant to be run in your terminal by pasting and pressing enter one after the other.

  • chsh -s $(which bash)
    OR
  • chsh -s /bin/bash
  • More info here

Bash for loop

for i in {1..2000}; do printf ' ♡ 📂 → ➩ ➪ ➫ ➬ ➭ ➮ '; done;

To change your computer's hostname (Mac)

  • sudo scutil --set HostName new_hostname
  • restart your computer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment