Skip to content

Instantly share code, notes, and snippets.

View wadinj's full-sized avatar
😀
Keep it simple

Jonathan Wadin wadinj

😀
Keep it simple
View GitHub Profile
@wadinj
wadinj / .gitconfig
Created March 26, 2018 23:46
.gitconfig
[log]
date = relative
[format]
pretty = format:%C(auto,yellow)%h%C(auto,blue)%>(12,trunc)%ad %C(auto,green)%<(7,trunc)%aN%C(auto,reset)%s%C(auto,red)% gD% D
[alias]
last = log -1 HEAD
[alias]
tree = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
"terminal.integrated.shell.windows": "C:\\tools\\cmder\\vendor\\git-for-windows\\bin\\bash.exe"
@wadinj
wadinj / gist:3b315f550bccaaf52131d58e72d24548
Created August 26, 2024 09:39
Direnv load poetry environment
layout_poetry() {
PYPROJECT_TOML="${PYPROJECT_TOML:-pyproject.toml}"
if [[ ! -f "$PYPROJECT_TOML" ]]; then
log_status "No pyproject.toml found. Executing \`poetry init\` to create a \`$PYPROJECT_TOML\` first."
poetry init
fi
if [[ -d ".venv" ]]; then
VIRTUAL_ENV="$(pwd)/.venv"
else