Update dotfiles/.local/share/chezmoi/home/.chezmoiexternal.toml, dotfiles/.local/share/chezmoi/home/symlink_Taskfile.yml, dotfiles/.local/share/chezmoi/home/run_update, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_before_10_install-darwin-packages.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_10_install-aqua-packages.sh.tmpl, dotfiles/.local/share/chezmoi/home/private_dot_config/shell/exports, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_15_install-asdf-packages.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoidata.yaml, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/archlinux/run_onchange_before_10_install-archlinux-packages.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_10_configure-darwin.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/darwin/run_onchange_after_20-configure-darwin-shell.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/ubuntu/run_onchange_before_10_install-ubuntu-packages.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_99_bootstrap-z4h.tmpl, dotfiles/.local/share/chezmoi/home/dot_tool_versions.tmpl
Deleted dotfiles/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_20_install-helm-plugins.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_30_install-krew-plugins.tmpl, dotfiles/.local/share/chezmoi/home/.chezmoiscripts/universal/run_onchange_after_40_install-rust-toolchain.tmpl
This commit is contained in:
parent
f4ed7e62c3
commit
44d8c6f774
17 changed files with 110 additions and 89 deletions
|
@ -1437,6 +1437,27 @@ softwarePlugins:
|
|||
dotnet:
|
||||
plugins:
|
||||
- Microsoft.CST.AttackSurfaceAnalyzer.CLI
|
||||
helm:
|
||||
plugins:
|
||||
- https://github.com/databus23/helm-diff
|
||||
- https://github.com/jkroepke/helm-secrets
|
||||
krew:
|
||||
plugins:
|
||||
- access-matrix
|
||||
- datree
|
||||
- deprecations
|
||||
- get-all
|
||||
- konfig
|
||||
- modify-secret
|
||||
- neat
|
||||
- node-shell
|
||||
- resource-capacity
|
||||
- score
|
||||
- sniff
|
||||
- tree
|
||||
- tunnel
|
||||
- view-allocations
|
||||
- who-can
|
||||
quicklook:
|
||||
plugins:
|
||||
- plugin: apparency
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
{{- end }}
|
||||
|
||||
### Betelgeuse Theme
|
||||
[".local/share"]
|
||||
[".local/share/betelgeuse"]
|
||||
type = "git-repo"
|
||||
url = "https://gitlab.com/megabyte-labs/misc/betelgeuse.git"
|
||||
[".local/share".pull]
|
||||
|
@ -76,17 +76,13 @@
|
|||
refreshPeriod = "{{ $refreshPeriod }}"
|
||||
|
||||
### Taskfiles
|
||||
[".local"]
|
||||
[".local/shared-common"]
|
||||
type = "archive"
|
||||
url = "https://gitlab.com/megabyte-labs/common/shared/-/archive/master/shared-master.tar.gz"
|
||||
exact = true
|
||||
stripComponents = 3
|
||||
refreshPeriod = "{{ $refreshPeriod }}"
|
||||
include = ["taskfiles/**"]
|
||||
["Taskfile.yml"]
|
||||
type = "file"
|
||||
url = "https://gitlab.com/megabyte-labs/common/shared/-/raw/master/Taskfile.yml"
|
||||
refreshPeriod = "{{ $refreshPeriod }}"
|
||||
|
||||
{{- if and (not .host.headless) (ne .chezmoi.os "windows") }}
|
||||
### Neovim
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{ if eq .host.distro.id "arch" }}
|
||||
{{- if eq .host.distro.id "arch" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
{{- $packages := splitList " " (includeTemplate "universal/essential-packages" .) }}
|
||||
|
@ -13,5 +13,13 @@
|
|||
{{- $packages = concat $packages $pyenvDependencies -}}
|
||||
{{- end }}
|
||||
|
||||
### Install base dependencies
|
||||
sudo packan -Sy --noconfirm --needed {{ $packages | sortAlpha | uniq | join " " -}}
|
||||
{{ end }}
|
||||
|
||||
### Install yay
|
||||
if ! command -v yay > /dev/null; then
|
||||
git clone https://aur.archlinux.org/yay.git /usr/local/src/yay
|
||||
cd /usr/local/src/yay
|
||||
makepkg -si
|
||||
fi
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
|
||||
|
||||
{{- if eq .host.distro.id "darwin" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -x
|
||||
|
@ -434,7 +433,7 @@ defaults write com.google.Chrome.canary AppleEnableSwipeNavigateWithScrolls -boo
|
|||
# Disable the all too sensitive backswipe on Magic Mouse
|
||||
defaults write com.google.Chrome AppleEnableMouseSwipeNavigateWithScrolls -bool false
|
||||
defaults write com.google.Chrome.canary AppleEnableMouseSwipeNavigateWithScrolls -bool false
|
||||
{{ if not .host.restricted }}
|
||||
{{- if not .host.restricted }}
|
||||
###############################################################################
|
||||
# Settings that require administrator permissions #
|
||||
###############################################################################
|
||||
|
@ -472,3 +471,4 @@ sudo chflags nohidden ~/Library
|
|||
# Show the /Volumes folder
|
||||
sudo chflags nohidden /Volumes
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if eq .host.distro.id "darwin" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eufo pipefail
|
||||
|
@ -13,3 +14,4 @@ if [[ ! -e /usr/local/bin/zsh ]]; then
|
|||
fi
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if eq .host.distro.id "darwin" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
xcode-select -p >/dev/null 2>&1 || xcode-select --install
|
||||
|
@ -13,6 +14,7 @@ eval $(/opt/homebrew/bin/brew shellenv)
|
|||
eval $(/usr/local/bin/brew shellenv)
|
||||
{{- end }}
|
||||
|
||||
brew bundle --verbose --no-lock --file=/dev/stdin <<EOF
|
||||
{{ includeTemplate "darwin/brewfile" . }}
|
||||
EOF
|
||||
# brew bundle --verbose --no-lock --file=/dev/stdin <<EOF
|
||||
# includeTemplate "darwin/brewfile" . }}
|
||||
# EOF
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{- if eq .host.distro.id "ubuntu" }}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
{{- $packages := splitList " " (includeTemplate "universal/essential-packages" .) -}}
|
||||
|
@ -27,3 +28,4 @@
|
|||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends {{ $packages | sortAlpha | uniq | join " " -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{{ if .enableAquaInstall }}
|
||||
{{- if false }}
|
||||
#!/usr/bin/env bash
|
||||
set -eufo pipefail
|
||||
|
||||
source $HOME/.config/shell/exports.sh
|
||||
source "$HOME/.config/shell/exports"
|
||||
|
||||
{{- $files := list -}}
|
||||
{{- range $path := glob (list .chezmoi.sourceDir "private_dot_config/aqua/**/*.yaml.tmpl" | join "/") }}
|
||||
|
@ -16,4 +16,4 @@ fi
|
|||
|
||||
aqua update-aqua
|
||||
aqua install -a
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
|
|
|
@ -7,7 +7,6 @@ source $HOME/.config/shell/exports.sh
|
|||
[ ! -d $ASDF_DIR ] && git clone https://github.com/asdf-vm/asdf.git "${ASDF_DIR}"
|
||||
. ${ASDF_DIR}/asdf.sh
|
||||
|
||||
asdf plugin-add direnv
|
||||
{{- if or .toolchains.java }}
|
||||
asdf plugin-add java
|
||||
asdf plugin-add maven
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
{{- if .toolchains.extra -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source $HOME/.config/shell/exports.sh
|
||||
helm_plugins=(
|
||||
https://github.com/databus23/helm-diff
|
||||
https://github.com/jkroepke/helm-secrets
|
||||
)
|
||||
|
||||
for plugin in "${helm_plugins[@]}"
|
||||
do
|
||||
echo Installing Helm plugin \"$plugin\"
|
||||
helm plugin install $plugin 2>/dev/null|| true
|
||||
done
|
||||
{{- end -}}
|
|
@ -1,40 +0,0 @@
|
|||
{{- if .toolchains.extra -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source $HOME/.config/shell/exports.sh
|
||||
if [[ ! -e $KREW_ROOT/bin/kubectl-krew ]]; then
|
||||
(
|
||||
set -x; cd "$(mktemp -d)" &&
|
||||
OS="$(uname | tr '[:upper:]' '[:lower:]')" &&
|
||||
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" &&
|
||||
KREW="krew-${OS}_${ARCH}" &&
|
||||
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" &&
|
||||
tar zxvf "${KREW}.tar.gz" &&
|
||||
./"${KREW}" install krew
|
||||
)
|
||||
fi
|
||||
|
||||
krew_plugins=(
|
||||
access-matrix
|
||||
datree
|
||||
deprecations
|
||||
get-all
|
||||
konfig
|
||||
modify-secret
|
||||
neat
|
||||
node-shell
|
||||
resource-capacity
|
||||
score
|
||||
sniff
|
||||
tree
|
||||
tunnel
|
||||
view-allocations
|
||||
who-can
|
||||
)
|
||||
|
||||
for plugin in "${krew_plugins[@]}"
|
||||
do
|
||||
echo Installing Krew plugin \"$plugin\"
|
||||
$KREW_ROOT/bin/kubectl-krew install $plugin 2>/dev/null || true
|
||||
done
|
||||
{{- end -}}
|
|
@ -1,6 +0,0 @@
|
|||
{{- if .toolchains.rust -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source $HOME/.config/shell/exports.sh
|
||||
rustup-init -y --no-modify-path
|
||||
{{- end -}}
|
|
@ -1,4 +1,4 @@
|
|||
{{- if .host.headless -}}
|
||||
{{- if and false .host.headless -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
Z4H_BOOTSTRAPPING=1 exec zsh && exit 0
|
||||
|
|
23
dotfiles/.local/share/chezmoi/home/dot_tool_versions.tmpl
Normal file
23
dotfiles/.local/share/chezmoi/home/dot_tool_versions.tmpl
Normal file
|
@ -0,0 +1,23 @@
|
|||
{{- if .toolchains.go }}
|
||||
golang system
|
||||
{{- end -}}
|
||||
{{- if .toolchains.java }}
|
||||
java openjdk-17
|
||||
{{- end -}}
|
||||
{{- if .toolchains.node }}
|
||||
deno system
|
||||
nodejs system
|
||||
{{- end -}}
|
||||
{{- if .toolchains.php }}
|
||||
php 8.1.12
|
||||
{{- end -}}
|
||||
{{- if .toolchains.python }}
|
||||
poetry system
|
||||
python system
|
||||
{{- end -}}
|
||||
{{- if .toolchains.ruby }}
|
||||
ruby 3.1.1
|
||||
{{- end -}}
|
||||
{{- if .toolchains.rust }}
|
||||
rust system
|
||||
{{- end -}}
|
|
@ -62,6 +62,8 @@ fi
|
|||
export ANDROID_SDK_HOME="$XDG_DATA_HOME/android-sdk"
|
||||
|
||||
### Aqua
|
||||
export AQUA_ROOT_DIR="$XDG_DATA_HOME/aqua"
|
||||
export AQUA_GLOBAL_CONFIG="$XDG_CONFIG_HOME/aqua/aqua.yaml"
|
||||
export PATH="${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin:$PATH"
|
||||
|
||||
### ASDF
|
||||
|
@ -165,6 +167,13 @@ export KDEHOME="$XDG_CONFIG_HOME/kde"
|
|||
### Kodi
|
||||
export KODI_DATA="$XDG_DATA_HOME/kodi"
|
||||
|
||||
### Krew
|
||||
export KREW_ROOT="$XDG_DATA_HOME/krew"
|
||||
|
||||
### Maven
|
||||
export MAVEN_CONFIG="$XDG_CONFIG_HOME/maven/settings.xml"
|
||||
alias mvn="mvn -s $MAVEN_CONFIG"
|
||||
|
||||
### McFly
|
||||
export MCFLY_FUZZY=2
|
||||
export MCFLY_RESULTS=14
|
||||
|
@ -267,18 +276,27 @@ export SAVEHIST=5000
|
|||
{{- if not .host.headless }}
|
||||
if command -v code > /dev/null; then
|
||||
export EDITOR='code --wait'
|
||||
export VISUAL="$EDITOR"
|
||||
else
|
||||
# Source: https://unix.stackexchange.com/questions/4859/visual-vs-editor-what-s-the-difference
|
||||
export EDITOR='vi -e'
|
||||
if command -v nvim > /dev/null; then
|
||||
export VISUAL='nvim -e'
|
||||
else
|
||||
export VISUAL="$EDITOR"
|
||||
fi
|
||||
fi
|
||||
{{- else -}}
|
||||
export EDITOR='vi -e'
|
||||
{{- end -}}
|
||||
if command -v nvim > /dev/null; then
|
||||
export VISUAL='nvim -e'
|
||||
else
|
||||
export VISUAL="$EDITOR"
|
||||
fi
|
||||
{{- end -}}
|
||||
|
||||
{{- if eq .host.type "wsl" }}
|
||||
### WSL
|
||||
export LIBGL_ALWAYS_INDIRECT="1"
|
||||
export BROWSER='/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe'
|
||||
|
||||
{{- end }}
|
||||
|
|
|
@ -1,23 +1,26 @@
|
|||
{{ if eq .chezmoi.os "linux" }}
|
||||
{{ if or (eq .chezmoi.os "linux") (eq .chezmoi.os "darwin") }}
|
||||
#!/bin/sh
|
||||
|
||||
echo "Run update hook"
|
||||
|
||||
rm -rf ~/AppData
|
||||
{{ if or (eq .chezmoi.os "linux") }}
|
||||
rm -rf ~/Library
|
||||
{{ end }}
|
||||
|
||||
if [ -d "$HOME/.local/shared-common" ]; then
|
||||
cp ~/.local/shared-common/Taskfile.yml ~/.local/Taskfile.yml
|
||||
sed -i 's/\.\/\.config\/taskfiles/taskfiles/g' ~/.local/Taskfile.yml
|
||||
ln -s ~/.local/taskfiles ~/.local/shared-common/common/.config/taskfiles
|
||||
fi
|
||||
|
||||
{{ else if .chezmoi.os "darwin" }}
|
||||
#!/bin/sh
|
||||
|
||||
rm -rf ~/AppData
|
||||
|
||||
{{ if (eq .chezmoi.os "darwin") }}
|
||||
if command -v gsed > /dev/null; then
|
||||
gsed -i 's/\.\/\.config\/taskfiles/taskfiles/g' ~/.local/Taskfile.yml
|
||||
else
|
||||
echo "Unable to fix ~/.local/Taskfile.yml because gsed GNU compatibility tool is not installed."
|
||||
fi
|
||||
{{ end }}
|
||||
|
||||
{{ else if chezmoi.os "windows" }}
|
||||
|
||||
|
|
8
dotfiles/.local/share/chezmoi/home/symlink_Taskfile.yml
Normal file
8
dotfiles/.local/share/chezmoi/home/symlink_Taskfile.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
version: '3'
|
||||
|
||||
# Tasks defined here can be run by running `run local:default` for example if you wanted
|
||||
# to run the task named default. See: https://taskfile.dev/. It is set up like this
|
||||
# so you can also access our set of bundled tasks located in the `~/.local` folder.
|
||||
tasks:
|
||||
default: echo "Default task"
|
Loading…
Reference in a new issue