Compare commits

..

4 Commits

Author SHA1 Message Date
Buddy Sandidge
6009b41350 Update git config when delta is installed 2023-11-09 12:09:03 -08:00
Buddy Sandidge
ebcce277d5 Add delta install script 2023-11-08 19:31:41 -08:00
Buddy Sandidge
0d677fa1e0 Add install confluent script 2023-11-08 11:15:51 -08:00
Buddy Sandidge
d00cf72450 Bump golangci-lint version 2023-10-31 12:51:16 -07:00
4 changed files with 68 additions and 1 deletions

View File

@ -8,6 +8,20 @@
quotepath = false
commitGraph = true
logallrefupdates = true
#{{- if lookPath "delta" }}#
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
line-numbers = true
[merge]
conflictstyle = diff3
#{{- end }}#
[color]
branch = auto
@ -58,6 +72,9 @@
[push]
default = simple
[pull]
rebase = false
[init]
defaultBranch = main
@ -75,6 +92,9 @@
[diff]
algorithm = histogram
#{{- if lookPath "delta" }}#
colorMoved = default
#{{- end }}#
[safe]
directory = *

View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
# shellcheck disable=SC1091
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
APP=confluent
VERSION=${VERSION:-3.39.1}
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
main() (
URL=https://github.com/confluentinc/cli/releases/download/v${VERSION}/confluent_${VERSION}_$(get_os)_$(get_arch).tar.gz
extract_tarball "${URL}" "${DEST}/${VERSION}" "--strip-components 1"
set_current_link "${DEST}" "${VERSION}"
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"
)
main "${@}"

View File

@ -0,0 +1,27 @@
#!/usr/bin/env bash
set -euo pipefail
# shellcheck disable=SC1091
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
APP="delta"
VERSION=${VERSION:-0.16.5}
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
main() (
URL=https://github.com/dandavison/delta/releases/download/${VERSION}/delta-${VERSION}-$(uname -m)-$(get_os).tar.gz
extract_tarball "${URL}" "${DEST}/${VERSION}" "--strip-component 1"
set_current_link "${DEST}" "${VERSION}"
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"
)
function get_os () {
case $(uname -s) in
Linux*) echo unknown-linux-gnu;;
Darwin*) echo apple-darwin;;
*) >&2 echo "unsupported os: $(uname -s)"; exit 1;;
esac
}
main "${@}"

View File

@ -6,7 +6,7 @@ set -e
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
APP=golangci-lint
VERSION=${VERSION:-1.54.2}
VERSION=${VERSION:-1.55.1}
DEST="${XDG_DATA_HOME}/apps/releases/${APP}"
URL=https://github.com/golangci/golangci-lint/releases/download/v${VERSION}/golangci-lint-${VERSION}-$(get_os)-$(get_arch).tar.gz