Skip to content

Instantly share code, notes, and snippets.

@sdkks
sdkks / git-commit-push.sh
Created February 5, 2023 12:03
Write a multiline git commit message and push directly
c(){
# Stage only modified files
# This ignores new/untracked files
git add -u .
# Use CTRL+D to end commit message
local COMMIT_MSG=$(cat)
if [[ -z "$COMMIT_MSG" ]]; then
return
@sdkks
sdkks / README.md
Created October 18, 2023 02:26 — forked from pdanford/README.md
Launching iTerm2 from macOS Finder

Launching iTerm2 from macOS Finder

(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)

The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.

pdanford - April 2020