diff --git a/.config/zsh/asdf.zsh b/.config/zsh/asdf.zsh index 1ba2f2b..96a2385 100644 --- a/.config/zsh/asdf.zsh +++ b/.config/zsh/asdf.zsh @@ -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` diff --git a/.config/zsh/pager.zsh b/.config/zsh/pager.zsh index 8b675bc..615ee03 100644 --- a/.config/zsh/pager.zsh +++ b/.config/zsh/pager.zsh @@ -15,3 +15,5 @@ function p () { } alias pl="p -l" +alias jqp="jq . | p -l json" +alias yqp="yq . | p -l yaml" diff --git a/.gitconfig##template b/.gitconfig##template index cf8e2d2..55d20a4 100644 --- a/.gitconfig##template +++ b/.gitconfig##template @@ -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