Skip to content

Instantly share code, notes, and snippets.

View mahdilacki's full-sized avatar

Mahdi Mohammadzadehlaki mahdilacki

  • Shell
  • Utrecht, Netherlands
  • 02:31 (UTC +01:00)
View GitHub Profile
@mahdilacki
mahdilacki / zsh-keyboard-shortucts.md
Created February 29, 2024 09:25 — forked from mkfares/zsh-keyboard-shortucts.md
Common zsh Keyboard Shortcuts on macOS Catalina

Common zsh Keyboard Shortcuts on macOS

Navigation

CTRL + A : Move the cursor to the beginning of the line
CTRL + E : Move the cursor to the end of the line
OPTION + Left Arrow : Move the cursor one word backward
OPTION + Right arrow : Move the cursor one word forward
Left Arrow : Move the cursor one character backward
Right Arrow : Move the cursor one character forward

@mahdilacki
mahdilacki / docker-for-mac.md
Created February 26, 2024 15:19 — forked from BretFisher/docker-for-mac.md
Getting a Shell in the Docker Desktop Mac VM

2021 Update: Easiest option is Justin's repo and image

Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info: https://github.com/justincormack/nsenter1