Compare commits
No commits in common. 'dbabc8b550bffdd522dc85128f6676a04715ab1e' and 'd1b095f98c5f00cb0fbc5ef5ad339dc8bf93c80c' have entirely different histories.
dbabc8b550
...
d1b095f98c
File diff suppressed because it is too large
Load Diff
@ -1,63 +0,0 @@
|
||||
# Nushell Environment Config File
|
||||
#
|
||||
# version = "0.100.0"
|
||||
|
||||
$env.STARSHIP_SHELL = "nu"
|
||||
|
||||
def create_left_prompt [] {
|
||||
starship prompt --cmd-duration $env.CMD_DURATION_MS $'--status=($env.LAST_EXIT_CODE)'
|
||||
}
|
||||
|
||||
# Use nushell functions to define your right and left prompt
|
||||
$env.PROMPT_COMMAND = { || create_left_prompt }
|
||||
$env.PROMPT_COMMAND_RIGHT = ""
|
||||
|
||||
$env.PROMPT_INDICATOR = ""
|
||||
$env.PROMPT_INDICATOR_VI_INSERT = ": "
|
||||
$env.PROMPT_INDICATOR_VI_NORMAL = "〉"
|
||||
$env.PROMPT_MULTILINE_INDICATOR = "::: "
|
||||
|
||||
# Specifies how environment variables are:
|
||||
# - converted from a string to a value on Nushell startup (from_string)
|
||||
# - converted from a value back to a string when running external commands (to_string)
|
||||
# Note: The conversions happen *after* config.nu is loaded
|
||||
$env.ENV_CONVERSIONS = {
|
||||
"PATH": {
|
||||
from_string: { |s| $s | split row (char esep) | path expand --no-symlink }
|
||||
to_string: { |v| $v | path expand --no-symlink | str join (char esep) }
|
||||
}
|
||||
"XDG_DATA_DIRS": {
|
||||
from_string: { |s| $s | split row (char esep) | path expand --no-symlink }
|
||||
to_string: { |v| $v | path expand --no-symlink | str join (char esep) }
|
||||
}
|
||||
"Path": {
|
||||
from_string: { |s| $s | split row (char esep) | path expand --no-symlink }
|
||||
to_string: { |v| $v | path expand --no-symlink | str join (char esep) }
|
||||
}
|
||||
}
|
||||
|
||||
# Directories to search for scripts when calling source or use
|
||||
# The default for this is $nu.default-config-dir/scripts
|
||||
$env.NU_LIB_DIRS = [
|
||||
($nu.default-config-dir | path join 'scripts') # add <nushell-config-dir>/scripts
|
||||
($nu.data-dir | path join 'completions') # default home for nushell completions
|
||||
]
|
||||
|
||||
# Directories to search for plugin binaries when calling register
|
||||
# The default for this is $nu.default-config-dir/plugins
|
||||
$env.NU_PLUGIN_DIRS = [
|
||||
# add <nushell-config-dir>/plugins
|
||||
($nu.default-config-dir | path join 'plugins')
|
||||
]
|
||||
|
||||
$env.PATH = [
|
||||
($'($env.HOME)/.local/bin')
|
||||
($'($env.CARGO_HOME?)' | path join "bin")
|
||||
($'($env.HOME)/go/bin')
|
||||
($'($env.HOME)/.rbenv/shims')
|
||||
($'($env.HOME)/.local/share/JetBrains/Toolbox/scripts')
|
||||
...($env.PATH | split row (char esep))
|
||||
'/snap/bin'
|
||||
] | each {|p| if ($p | path exists) { $p } else { null }} | uniq
|
||||
|
||||
source ($nu.default-config-dir | path join 'xdg.nu')
|
@ -1,28 +0,0 @@
|
||||
$env.XDG_BIN_HOME = $'($env.HOME)/.local/bin'
|
||||
$env.XDG_CACHE_HOME = $'($env.HOME)/.cache'
|
||||
$env.XDG_CONFIG_HOME = $'($env.HOME)/.config'
|
||||
$env.XDG_DATA_HOME = $'($env.HOME)/.local/share'
|
||||
$env.XDG_INCLUDE_HOME = $'($env.HOME)/.local/include'
|
||||
$env.XDG_STATE_HOME = $'($env.HOME)/.local/state'
|
||||
|
||||
$env.XDG_DESKTOP_DIR = $'($env.HOME)/desktop'
|
||||
$env.XDG_DOCUMENTS_DIR = $'($env.HOME)/documents'
|
||||
$env.XDG_DOWNLOAD_DIR = $'($env.HOME)/downloads'
|
||||
$env.XDG_MUSIC_DIR = $'($env.HOME)/music'
|
||||
$env.XDG_PICTURES_DIR = $'($env.HOME)/pictures'
|
||||
$env.XDG_PODCAST_DIR = $'($env.HOME)/podcasts'
|
||||
$env.XDG_PUBLICSHARE_DIR = $'($env.HOME)/public'
|
||||
$env.XDG_TEMPLATES_DIR = $'($env.HOME)/templates'
|
||||
$env.XDG_VIDEOS_DIR = $'($env.HOME)/videos'
|
||||
|
||||
let xdg = $env
|
||||
| transpose name value
|
||||
| each {|e| if $e.name =~ 'XDG_' { $e } else { null }}
|
||||
| each {|e| {
|
||||
name: ($e.name | str replace 'XDG_' '' | str downcase),
|
||||
value: $e.value
|
||||
}}
|
||||
| reduce --fold {} {|e, memo| {
|
||||
...$memo,
|
||||
$e.name: ($e.value | if $in =~ ':' { split row ':' } else { $e.value })
|
||||
}}
|
@ -0,0 +1,5 @@
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: set filetype=sh: */ -}}
|
||||
#{{- if and .hellotech .bws_token -}}
|
||||
ATLASSIAN_TOKEN=#{{ (bitwardenSecrets "70fbcffa-2cb1-4ddf-9b1f-b18c015c9ba9" .bws_token).value }}
|
||||
#{{- end }}
|
@ -0,0 +1,6 @@
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: set filetype=sh: */ -}}
|
||||
#{{- if and .hellotech .bws_token -}}
|
||||
CLOUDFLARE_EMAIL=#{{ (bitwardenSecrets "fbc453ba-4c18-4471-82a3-b18c015e40c5" .bws_token).value }}
|
||||
CLOUDFLARE_KEY=#{{ (bitwardenSecrets "c8aff966-4232-4629-8a08-b18c015e5da8" .bws_token).value }}
|
||||
#{{- end }}
|
@ -1,16 +0,0 @@
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAxZ3V6RUc4c1hFV1dITjdB
|
||||
elljUSt0ZUxVT0FLeWZuc05RT25DUUtvcFRZClZRVFh4bGp1eWhCYWJ0cG5MMWpB
|
||||
dUlLdzZTZHBxSXVzL1IxczI5SFdOQ2MKLS0tIHZ4N3NpS1dWZElla1ZmejNKeGxF
|
||||
dHorbHV6d1kwZ1pwRlB2ZDVCNnBxWGcK1IAjC/PhDxzizYfd2uvkmhgALMUpxdAd
|
||||
5QZke6zi6cDhHzHpg68I4p+afdKCGgtSMZ1dGrCqVlKIBkqzcjET9SJ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----END AGE ENCRYPTED FILE-----
|
@ -0,0 +1,5 @@
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: set filetype=sh: */ -}}
|
||||
#{{- if and .hellotech .bws_token -}}
|
||||
LINEAR_APP_TOKEN=#{{ (bitwardenSecrets "76693d18-eeb1-4019-976d-b18c015f7048" .bws_token).value }}
|
||||
#{{- end }}
|
@ -0,0 +1,5 @@
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: set filetype=sh: */ -}}
|
||||
#{{- if .bws_token -}}
|
||||
OPENAI_API_KEY=#{{ (bitwardenSecrets "579bd247-2357-4817-a033-b18c0161b7f1" .bws_token).value }}
|
||||
#{{- end }}
|
@ -0,0 +1,5 @@
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: set filetype=sh: */ -}}
|
||||
#{{- if and .hellotech .bws_token -}}
|
||||
PULUMI_ACCESS_TOKEN=#{{ (bitwardenSecrets "4688eb1b-e889-468f-ba40-b18c01607ae8" .bws_token).value }}
|
||||
#{{- end }}
|
@ -1,29 +0,0 @@
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSByVFlFRHRvWStKMTZyOEpo
|
||||
RGIzanlLNjVpbCtYUStVUFdVbWlRYndVdEVjCk8xbGZGWUZkQmRxaW9mcWx4clk4
|
||||
VlUrRERybGViNENQOHVHcTdCckwxNW8KLS0tIDBvbUNnc3pPUjh6aVQ3R2hYS09I
|
||||
aEJWV2J5TzZDcmt3NktmY0ZiT2Z5MWsKG8kpxjFDk8/3vFyMytpxXVHZaansazav
|
||||
yJ7fAgTWFW/uCf1ktzLtaQLHMl7Jd1BuVildgTIIX7dcDNEFcLF9p4+lputdO9E1
|
||||
NjjxXv8l/srRK1KjGf5tDrtPzD0QMgm4FMtO3c8on83S2T0J79VR8SdexCUKPNbd
|
||||
/QUjm8PwMd6sv+4pEU+awEPgEagh0u4g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zzsbYDV1t
|
||||
3MpIpFJtAwBCT9FFFzHDB0JDwByt1J0VWsNoBIj2gdkXIRZhjEibgIGDL9a0xA7N
|
||||
dKShV5kShaFlApu/4TfXRZQw7RMMPC7tVtrlZRJaKdymPjnR3KZ61HbC/raGlAhS
|
||||
gEwhD7HTbCQ5utxXMXVn7KcQ3AGcHzF8i0fU9dF/dLFsiN3mQD5FWdiKXdx7ItNU
|
||||
Wa+RPHMBrkJkjRkANk9I2XJjD7iwKnjccXGrP5DIz+4/oEpvLfqW0oDq2n0uWr+l
|
||||
rkCpI8bhAJxj+PuYLOaNvDHGyqfgp46XsjVFoLR5Yae51f3iwazaqQ==
|
||||
-----END AGE ENCRYPTED FILE-----
|
@ -1,3 +1,5 @@
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: set filetype=sh: */ -}}
|
||||
#shellcheck shell=sh
|
||||
|
||||
source_env_file() {
|
@ -0,0 +1,32 @@
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: set filetype=sh: */ -}}
|
||||
#{{- if and .hellotech .bws_token -}}
|
||||
|
||||
config_trubka_buddy () {
|
||||
export TRUBKA_BROKERS=#{{ (bitwardenSecrets "9598a627-0d32-4398-98fb-b18c014b9d7d" .bws_token).value }}
|
||||
export TRUBKA_TLS=true
|
||||
export TRUBKA_PROTO_ROOT=#{{ .chezmoi.homeDir }}/hellotech/entities
|
||||
export TRUBKA_SASL_USERNAME=#{{ (bitwardenSecrets "6fc85366-d6bc-438f-a75b-b18c014c7d77" .bws_token).value }}
|
||||
export TRUBKA_SASL_PASSWORD=#{{ (bitwardenSecrets "d8153476-d170-4d86-9804-b18c014c9a7b" .bws_token).value }}
|
||||
export TRUBKA_SASL_MECHANISM=plain
|
||||
}
|
||||
|
||||
config_trubka_dev () {
|
||||
export TRUBKA_BROKERS=#{{ (bitwardenSecrets "59d193cb-1b62-42cf-a753-b18c014cd5f6" .bws_token).value }}
|
||||
export TRUBKA_TLS=true
|
||||
export TRUBKA_PROTO_ROOT=#{{ .chezmoi.homeDir }}/hellotech/entities
|
||||
export TRUBKA_SASL_USERNAME=#{{ (bitwardenSecrets "123253f2-f720-4a56-af15-b18c014cf26b" .bws_token).value }}
|
||||
export TRUBKA_SASL_PASSWORD=#{{ (bitwardenSecrets "4cb2b59b-11ca-4cc2-a9e5-b18c014d11fd" .bws_token).value }}
|
||||
export TRUBKA_SASL_MECHANISM=plain
|
||||
}
|
||||
|
||||
config_trubka_prod () {
|
||||
export TRUBKA_BROKERS=#{{ (bitwardenSecrets "1e295c46-34b6-4ee9-b801-b18c014d3102" .bws_token).value }}
|
||||
export TRUBKA_TLS=true
|
||||
export TRUBKA_PROTO_ROOT=#{{ .chezmoi.homeDir }}/hellotech/entities
|
||||
export TRUBKA_SASL_USERNAME=#{{ (bitwardenSecrets "9d5de1a1-796d-4208-a5a7-b18c014d4e8e" .bws_token).value }}
|
||||
export TRUBKA_SASL_PASSWORD=#{{ (bitwardenSecrets "a7c38ba6-95be-42c0-8ed8-b18c014d6acf" .bws_token).value }}
|
||||
export TRUBKA_SASL_MECHANISM=plain
|
||||
}
|
||||
|
||||
#{{- end }}
|
@ -1,29 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
|
||||
main() (
|
||||
APP=lua-language-server
|
||||
VERSION=${VERSION:-3.13.3}
|
||||
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
|
||||
URL=https://github.com/LuaLS/lua-language-server/releases/download/${VERSION}/lua-language-server-${VERSION}-$(get_os)-$(get_arch).tar.gz
|
||||
|
||||
extract_tarball "${URL}" "${DEST}/${VERSION}"
|
||||
set_current_link "${DEST}" "${VERSION}"
|
||||
set_link "${XDG_BIN_HOME}/lua-language-server" "${DEST}" bin/lua-language-server
|
||||
)
|
||||
|
||||
get_arch() (
|
||||
case $(uname -m) in
|
||||
x86_64*) echo x64 ;;
|
||||
*)
|
||||
echo >&2 "unsupported architecture: $(uname -m)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
)
|
||||
|
||||
main "$@"
|
@ -1,32 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
|
||||
main () (
|
||||
APP=nushell
|
||||
VERSION=${VERSION:-0.100.0}
|
||||
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
|
||||
URL=https://github.com/nushell/nushell/releases/download/${VERSION}/nu-${VERSION}-$(uname -m)-$(get_os).tar.gz
|
||||
PLUGIN_DIR=${XDG_CONFIG_HOME}/nushell/plugins
|
||||
|
||||
extract_tarball "${URL}" "${DEST}/${VERSION}" "--strip-component 1"
|
||||
set_current_link "${DEST}" "${VERSION}"
|
||||
set_link "${XDG_BIN_HOME}/nu" "${DEST}" nu
|
||||
|
||||
mkdir_if_missing "${PLUGIN_DIR}"
|
||||
find "${DEST}" -type f -executable -exec basename {} \; | grep plugin | while read -r plugin ; do
|
||||
set_link "${PLUGIN_DIR}/${plugin}" "${DEST}" "${plugin}"
|
||||
done
|
||||
)
|
||||
|
||||
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 "$@"
|
@ -1,10 +0,0 @@
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNjcnlwdCBFVFQ2SE1pUWErTFdnQXJX
|
||||
UndQMjFRIDE4ClFOcDFwWDUyekRBRi8vZmxzTTRFa0wxZmNjRmhnL3BlTzFqN1p5
|
||||
VFZsdFUKLS0tIExrdG5ZUFAraUlnSEpCTnVEL3FZcGc3MzBBbXF2aFhodklOVlk5
|
||||
Zno5QnMKfWGrVFWWJvWPxoeP/tUF3ZM6sG1eFPWf97e+K9iopntaGcrvY83H+mrc
|
||||
lSdTVNplSm/Erq6u+UuAi8OeKE8G/Uf4vDXfuoww0dfbTpRDQPx+rAf3/kMVlgPt
|
||||
qvyhZzjaNeHV3+LKOlH9DnOGxr9an+zbndfOOid3f0YWSyVk41B04RGOdZe2w+3D
|
||||
ZUxon0+4lYzBv5snj6QVmdLqZPUiTWFpenXSwafr6LoYG51D8HEYsm53eJ7ZPq12
|
||||
oBIa+inji8v+B6zqIkKklF9qYGbub9SrwSyN9FKzrRmmbR0=
|
||||
-----END AGE ENCRYPTED FILE-----
|
@ -1,9 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ ! -f "{{ .chezmoi.homeDir }}/.config/chezmoi/key.txt" ]; then
|
||||
mkdir -p "{{ .chezmoi.homeDir }}/.config/chezmoi"
|
||||
chezmoi age decrypt \
|
||||
--output "{{ .chezmoi.homeDir }}/.config/chezmoi/key.txt" \
|
||||
--passphrase "{{ .chezmoi.sourceDir }}/key.txt.age"
|
||||
chmod 600 "{{ .chezmoi.homeDir }}/.config/chezmoi/key.txt"
|
||||
fi
|
Loading…
Reference in New Issue