Skip to content

Instantly share code, notes, and snippets.

View guillaumerocq's full-sized avatar
🚴‍♂️

guillaumerocq

🚴‍♂️
  • Lyon, France
View GitHub Profile
@guillaumerocq
guillaumerocq / branch_deletion.gitconfig
Created February 12, 2024 21:30
git alias: local and remote branch deletion
[alias]
## Local branches ##
# deletion of merged branches through bang operator emulation
# a deletion is made only if, at least, a branch exists
clean-lbranches = "!f() { \
git branch --merged | \
grep -Ewv '^\\*|main|master|develop' | \
xargs -n1 -r git branch -d; \
}; f"
@guillaumerocq
guillaumerocq / .tmux.conf
Created February 13, 2024 22:32
very simple, yet effective tmux.conf
## Global options
# 256 colors support
set -g default-terminal "tmux-256color"
set -g escape-time 0
# extend history limit
set -g history-limit 10000
# mouse support
set -g mouse on