Comments (2)
this belongs inside ggc
dotfiles/.oh-my-zsh/custom/aliases.zsh
Lines 53 to 62 in 33feb8e
from dotfiles.
likely solution:
#!/usr/bin/env sh
git_delete_merged_branches() {
# delete all local git branches that have been merged
# https://gist.github.com/8775224
set -eu
IFS=$(printf ' \t\n/')
IFS=${IFS%/}
if command git branch --merged | command grep -v '\*'; then
command git branch --merged |
command grep -v '\*' |
# command xargs -n 1 git branch -d
# until this is better tested, we will
# only print, not delete, merged branches
command xargs -n 1 echo
fi
{ set +eux; } 2>/dev/null
}
from dotfiles.
Related Issues (20)
- set shellcheck to check code within Markdown
- `git.io` deprecation
- reduce duplicate `vim-script` content - autoclosed HOT 5
- `~/.local/bin` is added to `$PATH` twice HOT 1
- fish-like autosuggestions
- illegible function needs commenting HOT 1
- add function-scope preference for unescaped pathnames
- `git add -p` isnβt always in `/usr/libexec` HOT 1
- assigning an alias (`cd -`) to `-` is not portable
- non-portable, non-POSIX-compliant `sed` call
- Korn shell invocation clears `$HISTFILE`
- Node global package list
- use `unset -v` for more portable variable unsetting
- `cp` should be prepended by `command`
- for consideration: submodule for package versus package
- restore bleeding-edge Super-Linter access
- `git add --patch` no longer requires a separate installation
- `${HOME%/}` instead of `${HOME-}`
- remove access to discontinued OpenAI models
- decimal time HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotfiles.