Skip to content

Instantly share code, notes, and snippets.

@chaseconey
Created October 17, 2022 16:26
Show Gist options
  • Save chaseconey/de276fcb5429e9b429246fb15cb01732 to your computer and use it in GitHub Desktop.
Save chaseconey/de276fcb5429e9b429246fb15cb01732 to your computer and use it in GitHub Desktop.

A Guide to Going Fast Cheatsheet

Using this gist to share out a lot of the links, and kind of a tl;dr of the things that I showed today.

Slides

Here is the slide deck if you want to review any of the visuals.

Recursive Reverse Searching

  • Ctrl + r - type search term
  • Ctrl + r - to go further back in history
  • Ctrl + s - to go forward in history

If you would rather see a list view of this, you might use something like this instead:

history | grep searchterm

Bonus

You may have noticed when I was demoing that I get auto completion of the last command I ran that has the search term that I have typed natively. I get that for free with the zsh-autocompletions plugin. Highly recommend :).

Shell Customization

Not sure I can tl;dr this section that well, but here are some resources worth checking out:

Dotfiles

tldr

First utility that I use most days - tldr.

The tldr pages are a community effort to simplify the beloved man pages with practical examples.

Install

npm install -g tldr

Usage

tldr <utility>

Screenshot Sharing

Probably best to go straight to the source on this one:

https://support.apple.com/en-us/HT201361#:~:text=How%20to%20take%20a%20screenshot,to%20save%20to%20your%20desktop.

As discussed in the presentation, you can also rebind these keys to better suit you. I don't much care to send screenshots to the desktop, I prefer it go straight to the clipboard. Here is how you would rebind those keys.

Gif Sharing

I am sure there are a lot of tools in this space, but the one that I have used with a lot of success is Gifox.

VSCode Multi=line Madness

  • Cmd + d - take highlighted term and find next occurence, add cursor
  • Cmd + Shift + l - take highlighted term, find all occurences, add cursor
  • Option + Shift + i - create a cursor at the end of every highlighted line
  • Alt/Option + Click - create a new instance of cursor

Bonus Resources

Shortcuts Galore - Tanner Hodges

Tanner shared this fantastic gist that he wrote himself that is in a similar vein to this topic. Lots of little shortcuts and concepts - definitely worth a read!

https://gist.github.com/tannerhodges/9ad999e39007ad4921569975f416734f

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