Update HelloTech config to chezmoi
This commit is contained in:
parent
7e92d28f52
commit
1725a711e8
@ -1,16 +1,8 @@
|
|||||||
|
{{ if lookPath "brew" -}}
|
||||||
# vi: ft=bash
|
# vi: ft=bash
|
||||||
|
|
||||||
if command -v brew &> /dev/null; then
|
if command -v brew &> /dev/null; then
|
||||||
if [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then
|
if [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then
|
||||||
. "$(brew --prefix)/share/bash-completion/bash_completion"
|
. "$(brew --prefix)/share/bash-completion/bash_completion"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
{{- end }}
|
||||||
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
|
|
||||||
|
|
||||||
6
dot_config/bash/bashrc.d/helm.sh.tmpl
Normal file
6
dot_config/bash/bashrc.d/helm.sh.tmpl
Normal file
@ -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 }}
|
||||||
6
dot_config/bash/bashrc.d/kubectl.sh.tmpl
Normal file
6
dot_config/bash/bashrc.d/kubectl.sh.tmpl
Normal file
@ -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
|
# vim: ft=sh
|
||||||
if command -v helm > /dev/null 2>&1; then
|
if command -v helm > /dev/null 2>&1; then
|
||||||
eval "$(helm completion fish)"
|
eval "$(helm completion fish)"
|
||||||
fi
|
fi
|
||||||
|
{{- end }}
|
||||||
@ -1,5 +1,7 @@
|
|||||||
|
{{ if and .hellotech (lookPath "git") -}}
|
||||||
[url "git@github.com:HelloTech"]
|
[url "git@github.com:HelloTech"]
|
||||||
insteadOf = https://github.com/HelloTech
|
insteadOf = https://github.com/HelloTech
|
||||||
email = buddy@hellotech.com
|
email = buddy@hellotech.com
|
||||||
[init]
|
[init]
|
||||||
templateDir = ~/.config/git/template
|
templateDir = ~/.config/git/template
|
||||||
|
{{- end }}
|
||||||
3
hellotech/.config/git/template/hooks/prepare-commit-msg → dot_config/git/template/hooks/executable_prepare-commit-msg.tmpl
Executable file → Normal file
3
hellotech/.config/git/template/hooks/prepare-commit-msg → dot_config/git/template/hooks/executable_prepare-commit-msg.tmpl
Executable file → Normal file
@ -1,4 +1,6 @@
|
|||||||
|
{{ if and .hellotech (lookPath "node") -}}
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
// vim: ft=javascript
|
||||||
|
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const childProcess = require("child_process");
|
const childProcess = require("child_process");
|
||||||
@ -48,3 +50,4 @@ main().catch(err => {
|
|||||||
console.error(err);
|
console.error(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
{{- end }}
|
||||||
@ -1,3 +1,5 @@
|
|||||||
|
{{ if .hellotech -}}
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
GOPRIVATE=github.com/HelloTech
|
GOPRIVATE=github.com/HelloTech
|
||||||
PULUMI_SKIP_UPDATE_CHECK=true
|
PULUMI_SKIP_UPDATE_CHECK=true
|
||||||
|
{{- end }}
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
{{ if .hellotech -}}
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
k8s_last_config () (
|
k8s_last_config () (
|
||||||
@ -22,3 +23,4 @@ _add_path "/usr/local/opt/mysql-client/bin"
|
|||||||
_add_path "${HOME}/google-cloud-sdk/bin"
|
_add_path "${HOME}/google-cloud-sdk/bin"
|
||||||
|
|
||||||
unset _add_path
|
unset _add_path
|
||||||
|
{{- end }}
|
||||||
11
dot_config/zsh/zshrc.d/helm.zsh.tmpl
Normal file
11
dot_config/zsh/zshrc.d/helm.zsh.tmpl
Normal file
@ -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
|
# shellcheck disable=SC2148,SC1090
|
||||||
|
|
||||||
autoload -U +X compinit && compinit
|
autoload -U +X compinit && compinit
|
||||||
@ -6,8 +7,5 @@ if command -v kubectl > /dev/null 2>&1; then
|
|||||||
source <(kubectl completion zsh)
|
source <(kubectl completion zsh)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v helm > /dev/null 2>&1 ; then
|
|
||||||
source <(helm completion zsh)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# vim: ft=bash
|
# vim: ft=bash
|
||||||
|
{{- end }}
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
{{ if and .hellotech (lookPath "jq") -}}
|
||||||
import "colors" as colors;
|
import "colors" as colors;
|
||||||
|
|
||||||
def clean_multierror:
|
def clean_multierror:
|
||||||
@ -75,3 +76,4 @@ def show:
|
|||||||
"\n" + colors::red + "ERROR" + colors::reset + ": " + _show_error
|
"\n" + colors::red + "ERROR" + colors::reset + ": " + _show_error
|
||||||
else "" end
|
else "" end
|
||||||
) + colors::reset;
|
) + colors::reset;
|
||||||
|
{{- end }}
|
||||||
Loading…
Reference in New Issue
Block a user