Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guptaroshan/mac-shortcuts-cheatsheet
Mac shortcuts and homebrew commands cheatsheet
https://github.com/guptaroshan/mac-shortcuts-cheatsheet
homebrew mac
Last synced: 13 days ago
JSON representation
Mac shortcuts and homebrew commands cheatsheet
- Host: GitHub
- URL: https://github.com/guptaroshan/mac-shortcuts-cheatsheet
- Owner: GuptaRoshan
- Created: 2024-07-15T06:18:24.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-15T06:18:52.000Z (4 months ago)
- Last Synced: 2024-10-04T21:42:13.616Z (about 1 month ago)
- Topics: homebrew, mac
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Mac Keyboard Shortcuts for Programmers
1. Highlight Code from the Cursor to the Start or End of the Line**
- Select Code Right of the Cursor: `⌘ + Shift + Right Arrow`
- Select Code Left of the Cursor: `⌘ + Shift + Left Arrow`2. **Cut, Copy, and Paste**
- Cut: `⌘ + X`
- Copy: `⌘ + C`
- Paste: `⌘ + V`3. **Save your File**
- Save: `⌘ + S`
4. **Comment Out Sections of Code**
- Comment Out Lines of Code: `⌘ + /`
5. **Shift One or More Lines Left or Right**
- Shift Right: `Tab`
- Shift Left: `Shift + Tab`6. **Toggle Between Tabs**
- Toggle Tabs to the Right: `CTRL + Tab`
- Toggle Tabs to the Left: `CTRL + Shift + Tab`7. **Search within a File**
- Open a Find Bar: `⌘ + F`
8. **Select Matching Instances**
- Select Matching Instances One at a Time: `⌘ + D`
- Select All Matching Instances at Once: `⌘ + Shift + L`9. **Highlight an Entire File**
- Highlight an Entire File: `⌘ + A`
10. **Undo and Redo**
- Undo: `⌘ + Z`
- Redo: `⌘ + Shift + Z`## Common Homebrew Commands
**Install Homebrew**
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```**Install a Package**
```bash
brew install
```**Uninstall a Package**
```bash
brew uninstall
```**Update Homebrew**
```bash
brew update
```**Upgrade Installed Packages**
```bash
brew upgrade
```**List Installed Packages**
```bash
brew list
```**Search for a Package**
```bash
brew search
```**Show Information About a Package**
```bash
brew info
```**Clean Up Old Versions of Packages**
```bash
brew cleanup
```