Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
USAGE="usage: git delete-merged-branches
[(-r|--remote) <remote-name>]
[(-b|--branch) <merge-base>]
[(-s|--older-than) <date>]
[--local-only] [--yes] [-n|--dry-run]"
for (( i = 1; i < $(($#+1)); ++i )); do
@kikuchi-m
kikuchi-m / .gitconfig
Last active December 30, 2024 21:41
git commands
user.name=Kikuchi Motoki
user.email=wildflower.pink0102@gmail.com
rebase.autosquash=true
diff.context=7
alias.branch-short=for-each-ref --format='%(refname:short)' refs/heads
alias.diffc=diff --cached
alias.fetchp=fetch --prune
alias.graph=log --graph --pretty="%Cred%h%Creset - %Creset%C(yellow)%cN%Creset %Cgreen%d%Creset %s %C(cyan)(%ai - %ar)%Creset" --date=relative --date-order
alias.graphs=graph --remotes HEAD
alias.root=rev-parse --show-toplevel
@kikuchi-m
kikuchi-m / build.gradle
Last active May 11, 2023 07:29
enable IDE to attach debugger (spring-boot, build.gradle)
bootRun {
jvmArgs=["-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"]
}
@kikuchi-m
kikuchi-m / .tmux.conf
Last active January 7, 2025 06:20
for osx
set -g prefix C-x
# set -g prefix2 C-b
set -g history-limit 7000
set -g mouse on
bind l select-pane -R
bind h select-pane -L
bind j select-pane -D
@kikuchi-m
kikuchi-m / .vimrc
Last active April 20, 2022 03:55
.vimrc
"using vim-plug
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree'
"Plug 'editorconfig/editorconfig-vim'
"Plug 'embear/vim-localvimrc'
Plug 'udalov/kotlin-vim'
Plug 'Vimjas/vim-python-pep8-indent'
Plug 'tpope/vim-fugitive'
"Plug 'pangloss/vim-javascript'
"Plug 'leafgarland/typescript-vim'