Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Define Vim as Git editor

git config --global core.editor "vim"

How to squash all commit on a branch

@nvogel
nvogel / base.sh
Last active May 10, 2021 13:38
bash_tips
#!/usr/bin/env bash
# https://github.com/kward/shflags
# https://odb.github.io/shml/getting-started/#Install
# Path to script directory
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck disable=SC1090
source "${__dir}/lib/shml.sh"