Compare commits

..

No commits in common. "6dd9328adcdf5316d5b4735da3ae2b9e2bb4d118" and "3bc585e72b5b63bda775ccc381a26601e72a5459" have entirely different histories.

3 changed files with 0 additions and 49 deletions

View File

@ -1,6 +0,0 @@
{{- $hellotech := promptBoolOnce . "hellotech" "include work tools [false]" -}}
{{- $include_legacy := promptBoolOnce . "include_legacy" "include old scripts [false]" -}}
[data]
hellotech = {{ $hellotech }}
include_legacy = {{ $include_legacy }}

View File

@ -1,5 +1,4 @@
/README.md
/scripts/
{{ if .include_legacy }}
/dot_local/bin/duck-encoder.jar
{{ end }}

View File

@ -1,42 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
XDG_BIN_HOME=${XDG_BIN_HOME:-${HOME}/.local/bin}
XDG_DATA_HOME=${XDG_DATA_HOME:-${HOME}/.local/share}
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-${HOME}/.config}
SCRIPTS_DIR=$(dirname "$0")
REPO_DIR=${SCRIPTS_DIR}/..
INCLUDES_DIR=${REPO_DIR}/dot_local/share/buddy-up/includes
# shellcheck disable=SC1091
source "${INCLUDES_DIR}/utils.sh"
APP=chezmoi
VERSION=${VERSION:-2.33.6}
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
main() (
URL=https://github.com/twpayne/chezmoi/releases/download/v${VERSION}/chezmoi_${VERSION}_$(get_os)_$(get_arch).tar.gz
extract_tarball "${URL}" "${DEST}/${VERSION}"
set_current_link "${DEST}" "${VERSION}"
set_link "${XDG_BIN_HOME}/${APP}" "${DEST}" "${APP}"
set_link "${XDG_CONFIG_HOME}/bash/bashrc.d/chezmoi.sh" "${DEST}" "completions/chezmoi-completion.bash"
set_link "${XDG_CONFIG_HOME}/zsh/zshrc.d/chezmoi.zsh" "${DEST}" "completions/chezmoi.zsh"
set_link "${XDG_CONFIG_HOME}/fish/completions/chezmoi.fish" "${DEST}" "completions/chezmoi.fish"
set_link "${XDG_DATA_HOME}/doc/chezmoi" "${DEST}" "docs"
)
get_arch() (
case $(uname -m) in
x86_64*) echo amd64 ;;
*)
echo >&2 "unsupported architecture: $(uname -m)"
exit 1
;;
esac
)
main "${@}"