Update HelloTech config to chezmoi

main
Buddy Sandidge 2 years ago
parent 7e92d28f52
commit 1725a711e8

@ -1,16 +1,8 @@
{{ if lookPath "brew" -}}
# vi: ft=bash
if command -v brew &> /dev/null; then
if [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then
. "$(brew --prefix)/share/bash-completion/bash_completion"
fi
fi
if command -v kubectl > /dev/null 2>&1; then
source <(kubectl completion bash)
fi
if command -v helm > /dev/null 2>&1; then
source <(helm completion bash)
fi
{{- end }}

@ -0,0 +1,6 @@
{{ if lookPath "helm" -}}
# vi: ft=bash
if command -v helm > /dev/null 2>&1; then
source <(helm completion bash)
fi
{{- end }}

@ -0,0 +1,6 @@
{{ if lookPath "kubectl" -}}
# vi: ft=bash
if command -v kubectl > /dev/null 2>&1; then
source <(kubectl completion bash)
fi
{{- end }}

@ -1,4 +1,6 @@
{{ if lookPath "helm" -}}
# vim: ft=sh
if command -v helm > /dev/null 2>&1; then
eval "$(helm completion fish)"
fi
{{- end }}

@ -1,5 +1,7 @@
{{ if and .hellotech (lookPath "git") -}}
[url "git@github.com:HelloTech"]
insteadOf = https://github.com/HelloTech
email = buddy@hellotech.com
[init]
templateDir = ~/.config/git/template
{{- end }}

@ -1,4 +1,6 @@
{{ if and .hellotech (lookPath "node") -}}
#!/usr/bin/env node
// vim: ft=javascript
const fs = require("fs");
const childProcess = require("child_process");
@ -48,3 +50,4 @@ main().catch(err => {
console.error(err);
process.exit(1);
});
{{- end }}

@ -1,3 +1,5 @@
{{ if .hellotech -}}
# shellcheck disable=SC2034
GOPRIVATE=github.com/HelloTech
PULUMI_SKIP_UPDATE_CHECK=true
{{- end }}

@ -1,3 +1,4 @@
{{ if .hellotech -}}
#!/usr/bin/env bash
k8s_last_config () (
@ -22,3 +23,4 @@ _add_path "/usr/local/opt/mysql-client/bin"
_add_path "${HOME}/google-cloud-sdk/bin"
unset _add_path
{{- end }}

@ -0,0 +1,11 @@
{{ if lookPath "helm" -}}
# shellcheck disable=SC2148,SC1090
autoload -U +X compinit && compinit
if command -v helm > /dev/null 2>&1 ; then
source <(helm completion zsh)
fi
# vim: ft=bash
{{- end }}

@ -1,3 +1,4 @@
{{ if lookPath "kubectl" -}}
# shellcheck disable=SC2148,SC1090
autoload -U +X compinit && compinit
@ -6,8 +7,5 @@ if command -v kubectl > /dev/null 2>&1; then
source <(kubectl completion zsh)
fi
if command -v helm > /dev/null 2>&1 ; then
source <(helm completion zsh)
fi
# vim: ft=bash
{{- end }}

@ -1,3 +1,4 @@
{{ if and .hellotech (lookPath "jq") -}}
import "colors" as colors;
def clean_multierror:
@ -75,3 +76,4 @@ def show:
"\n" + colors::red + "ERROR" + colors::reset + ": " + _show_error
else "" end
) + colors::reset;
{{- end }}
Loading…
Cancel
Save