From 723e16aba7ee44ac6e93c434ae56a1e669c6a821 Mon Sep 17 00:00:00 2001 From: Ted Kulp Date: Tue, 21 Nov 2023 08:46:59 -0500 Subject: [PATCH 1/5] feat: enable push.autoSetupRemote --- .gitconfig##template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitconfig##template b/.gitconfig##template index cf8e2d2..b3dd725 100644 --- a/.gitconfig##template +++ b/.gitconfig##template @@ -37,3 +37,6 @@ [init] defaultBranch = main + +[push] + autoSetupRemote = true From f6c047062158fb20b54fe5ddb865e6fc8423feee Mon Sep 17 00:00:00 2001 From: Ted Kulp Date: Thu, 30 Nov 2023 13:08:20 -0500 Subject: [PATCH 2/5] feat: git aliases for dead local branches --- .gitconfig##template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitconfig##template b/.gitconfig##template index b3dd725..084eb7d 100644 --- a/.gitconfig##template +++ b/.gitconfig##template @@ -34,6 +34,9 @@ [alias] mdr = merge --no-commit --no-ff + 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 From bf0eba08f7b1d3eab315f3f1c7cf9dbde5873137 Mon Sep 17 00:00:00 2001 From: Ted Kulp Date: Thu, 30 Nov 2023 13:15:16 -0500 Subject: [PATCH 3/5] feat: shorter git aliases --- .gitconfig##template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitconfig##template b/.gitconfig##template index 084eb7d..55d20a4 100644 --- a/.gitconfig##template +++ b/.gitconfig##template @@ -34,6 +34,9 @@ [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" From f8ca7eda836863c1e968b1f953ab1f1e54b33b8b Mon Sep 17 00:00:00 2001 From: Ted Kulp Date: Wed, 6 Dec 2023 07:26:52 -0500 Subject: [PATCH 4/5] feat: add jq/yq pager aliases --- .config/zsh/pager.zsh | 2 ++ 1 file changed, 2 insertions(+) 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" From 9ce3a1f435e43a4ad4e4194b7a4661ff2ea39250 Mon Sep 17 00:00:00 2001 From: Ted Kulp Date: Mon, 11 Dec 2023 07:17:48 -0500 Subject: [PATCH 5/5] feat: properly allow .nvmrc --- .config/zsh/asdf.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/zsh/asdf.zsh b/.config/zsh/asdf.zsh index a5b7a1c..64a476f 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`