Merge branch 'master' of github.com:tedkulp/dotfiles

This commit is contained in:
2023-12-11 07:51:23 -05:00
3 changed files with 13 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
export ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY=latest_installed
asdf-up() {
plugin=$1
cur_version=`asdf current ${plugin} | tr -s ' ' | cut -d ' ' -f 2`

View File

@@ -15,3 +15,5 @@ function p () {
}
alias pl="p -l"
alias jqp="jq . | p -l json"
alias yqp="yq . | p -l yaml"

View File

@@ -34,6 +34,15 @@
[alias]
mdr = merge --no-commit --no-ff
dlb = "dead-local-branches"
ddlb = "delete-dead-local-branches"
fdlb = "force-delete-dead-local-branches"
dead-local-branches = "!git branch -vv | grep ': gone]'| grep -v '\\*' | awk '{ print $1; }'"
delete-dead-local-branches = "!git branch -vv | grep ': gone]'| grep -v '\\*' | awk '{ print $1; }' | xargs -r git branch -d"
force-delete-dead-local-branches = "!git branch -vv | grep ': gone]'| grep -v '\\*' | awk '{ print $1; }' | xargs -r git branch -D"
[init]
defaultBranch = main
[push]
autoSetupRemote = true