mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-06 05:14:53 -06:00
- Add SDKMAN initialization to bashrc for Java SDK management - Create Fish shell wrapper function for SDKMAN commands - Switch from lazy-loading to automatic mise activation in Fish - Clean up fish_plugins comments for clarity - Add pnpm to mise tool-versions - Enable Shift+Enter in Kitty for Claude Code multi-line prompts - Make update_pre.ts hook executable
20 lines
568 B
TypeScript
Executable File
20 lines
568 B
TypeScript
Executable File
#!/usr/bin/env bun
|
|
|
|
// chezmoi update --init does not invoke the 'hooks.init.pre' hook, so we do it ourselves
|
|
const chezmoiArgs = process.env.CHEZMOI_ARGS || '';
|
|
|
|
if (chezmoiArgs.includes('init')) {
|
|
// CHEZMOI_UPDATE is just a hint in case we need to know if we're updating
|
|
const scriptDir = import.meta.dir;
|
|
const initPreScript = `${scriptDir}/.init_pre.ts`;
|
|
|
|
await Bun.spawn(['bun', initPreScript], {
|
|
env: {
|
|
...process.env,
|
|
CHEZMOI_UPDATE: '1'
|
|
},
|
|
stdout: 'inherit',
|
|
stderr: 'inherit'
|
|
});
|
|
}
|