mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-06 01:14:48 -06:00
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:
@@ -113,4 +113,8 @@ fi
|
|||||||
# If WSL, add SSH key on startup (once per WSL start)
|
# If WSL, add SSH key on startup (once per WSL start)
|
||||||
{{- if .wsl }}
|
{{- if .wsl }}
|
||||||
eval `keychain --quiet --eval --agents ssh ~/.ssh/id_rsa`
|
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"
|
||||||
4
home/dot_config/fish/conf.d/mise.fish
Normal file
4
home/dot_config/fish/conf.d/mise.fish
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Activate mise automatically on shell startup
|
||||||
|
if command -q mise
|
||||||
|
mise activate fish | source
|
||||||
|
end
|
||||||
@@ -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
|
jorgebucaran/fisher
|
||||||
ilancosman/tide@v6
|
ilancosman/tide@v6
|
||||||
patrickf1/fzf.fish
|
patrickf1/fzf.fish
|
||||||
|
|||||||
@@ -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
|
|
||||||
4
home/dot_config/fish/functions/sdk.fish
Normal file
4
home/dot_config/fish/functions/sdk.fish
Normal 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
|
||||||
@@ -5,3 +5,6 @@ include current-theme.conf
|
|||||||
|
|
||||||
enable_audio_bell no
|
enable_audio_bell no
|
||||||
font_family MesloLGS NF
|
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
0
home/hooks/.update_pre.ts
Normal file → Executable file
@@ -1,3 +1,4 @@
|
|||||||
nodejs latest
|
nodejs latest
|
||||||
|
pnpm latest
|
||||||
zoxide 0.9.6
|
zoxide 0.9.6
|
||||||
deno 2.2.2
|
deno 2.2.2
|
||||||
|
|||||||
Reference in New Issue
Block a user