- Find What:
lambda\s*\{\s*\|(\w+,*\s*\w+)\|
- Replace With:
->($1) {
- Find What:
scope\s:(\w+),\s(\w+.+)
- Replace With:
scope :$1, -> { $2 }
Find: \@(\w+)\s=\s\{ | |
Replace: let\(\:$1\) \{ |
I hereby claim:
To claim this, I am signing this object:
git-clean-branches() { | |
if [ ! -d .git ]; then | |
echo "This is not a Git directory" | |
return 1 | |
fi; | |
# Get list of local branches | |
branches=() | |
eval "$(git for-each-ref --shell --format='branches+=(%(refname))' refs/heads/)" |