feat: add SDKMAN integration and improve mise/tool configuration

- 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
This commit is contained in:
2025-11-24 00:25:02 -06:00
parent 262da2f114
commit 075810965a
8 changed files with 17 additions and 18 deletions

View File

@@ -113,4 +113,8 @@ fi
# If WSL, add SSH key on startup (once per WSL start)
{{- if .wsl }}
eval `keychain --quiet --eval --agents ssh ~/.ssh/id_rsa`
{{ end }}
{{ end }}
# SDKMAN initialization
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"

View File

@@ -0,0 +1,4 @@
# Activate mise automatically on shell startup
if command -q mise
mise activate fish | source
end

View File

@@ -1,10 +1,4 @@
# Fish shell plugins managed by Fisher
# https://github.com/jorgebucaran/fisher
#
# To install all plugins: fisher update
# To add a plugin: fisher install <plugin>
# To remove a plugin: fisher remove <plugin>
jorgebucaran/fisher
ilancosman/tide@v6
patrickf1/fzf.fish

View File

@@ -1,11 +0,0 @@
# Lazy-load mise on first use
function mise --wraps mise
# Initialize mise only once
if not set -q __mise_initialized
set -g __mise_initialized 1
command mise activate fish | source
end
# Execute the actual mise command
command mise $argv
end

View File

@@ -0,0 +1,4 @@
function sdk --description 'SDKMAN wrapper for Fish shell'
# Run sdk commands in a Bash subshell
bash -c "source '$HOME/.sdkman/bin/sdkman-init.sh' && sdk $argv"
end

View File

@@ -5,3 +5,6 @@ include current-theme.conf
enable_audio_bell no
font_family MesloLGS NF
# Claude Code: Enable Shift+Enter for multi-line prompts
map shift+enter send_text all \n

0
home/hooks/.update_pre.ts Normal file → Executable file
View File

View File

@@ -1,3 +1,4 @@
nodejs latest
pnpm latest
zoxide 0.9.6
deno 2.2.2