Skip to content

Commit def2483

Browse files
committed
Update code using Claude Code
1 parent 75d604e commit def2483

File tree

8 files changed

+28
-31
lines changed

8 files changed

+28
-31
lines changed

fish/conf.d/00_global_vars.fish

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ set -gx PASSWORD_STORE_DIR "$XDG_DATA_HOME/password-store"
6363
# Security settings
6464
set -gx NOCLOBBER 1
6565

66-
# GPG Suite doesn't support a different home for gnupg :(
67-
# set -gx GNUPGHOME "$XDG_CONFIG_HOME/gnupg"
66+
# GPG configuration for better XDG compliance
67+
set -gx GNUPGHOME "$XDG_DATA_HOME/gnupg"
6868

6969
# ============================================================================
7070
# Package Managers and Tools
@@ -77,8 +77,8 @@ set -gx HOMEBREW_CASK_OPTS --no-quarantine
7777
# pipx configuration
7878
set -gx PIPX_BIN_DIR "$HOME/.local/bin"
7979

80-
# asdf version manager
81-
set -gx ASDF_CONFIG_FILE "$XDG_CONFIG_HOME/asdf/.asdfrc"
80+
# mise configuration
81+
set -gx MISE_CONFIG_FILE "$XDG_CONFIG_HOME/mise/config.toml"
8282

8383
# mise configuration (manual control preferred)
8484
set -gx MISE_FISH_AUTO_ACTIVATE 0
@@ -176,6 +176,10 @@ set -gx SQLITE_HISTORY "$APPLICATIONS_HISTORY_PATH/sqlite_history"
176176
# AI and Development Tools
177177
set -gx CLAUDE_CODE_USE_BEDROCK 1
178178

179+
# Modern Python tools
180+
set -gx UV_CACHE_DIR "$XDG_CACHE_HOME/uv"
181+
set -gx RUFF_CACHE_DIR "$XDG_CACHE_HOME/ruff"
182+
179183
# ============================================================================
180184
# Optional/Commented Configurations
181185
# ============================================================================

fish/conf.d/05_fisher.fish

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if not functions -q fisher
22
set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config
3-
curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish
4-
fish -c fisher
3+
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
4+
fisher install edc/bass
55
end

fish/conf.d/07_zoxide.fish

Lines changed: 0 additions & 1 deletion
This file was deleted.

fish/config.fish

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@ if test -e "$XDG_CONFIG_HOME/env/env.fish"
33
source "$XDG_CONFIG_HOME/env/env.fish"
44
end
55

6-
# Try to improve startup time
7-
# starship init fish | source
8-
# /opt/homebrew/bin/starship init fish --print-full-init | source
9-
/opt/homebrew/bin/starship init fish | source
6+
starship init fish | source

fish/fishfile

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,45 @@
1-
function update-asdf --description 'Update various asdf settings and versions'
1+
function update-mise --description 'Update various mise settings and versions'
22
set --local global_python 3.11
33
set --local global_java temurin-17
44
set --local global_node 20
55

66
echo "Updating plugins"
7-
asdf plugin update --all
7+
mise plugins update
88
echo
99

10-
echo "Removing shims and re-shimming"
11-
# rm -rf ~/.asdf/shims && asdf reshim
12-
asdf reshim
10+
echo "Refreshing mise"
11+
mise cache clear
1312
echo
1413

1514
echo "Installing latest python versions"
1615
for python_version in 3.9 3.10 3.11 3.12
17-
asdf install python latest:"$python_version"
16+
mise install python@latest:"$python_version"
1817
end
1918
echo
2019

2120
echo "Setting latest python $global_python as global"
22-
asdf global python latest:$global_python
21+
mise use -g python@latest:$global_python
2322
echo
2423

2524
echo "Installing latest java versions"
2625
for java_version in 21 17 11
27-
asdf install java latest:"temurin-$java_version"
26+
mise install java@latest:"temurin-$java_version"
2827
end
2928
echo
3029

3130
echo "Setting latest java $global_java global"
32-
asdf global java latest:$global_java
31+
mise use -g java@latest:$global_java
3332
echo
3433

3534
echo "Setting latest node.js $global_node global"
36-
asdf global nodejs latest:$global_node
35+
mise use -g node@latest:$global_node
3736
echo
3837

3938
for program in rust maven groovy scala gradle
4039
echo "Installing latest $program"
41-
asdf install $program latest
40+
mise install $program@latest
4241
echo "Setting $program global version to latest"
43-
asdf global $program latest
42+
mise use -g $program@latest
4443
echo
4544
end
4645
end

fish/functions/venv-activate.fish

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function venv-activate --argument-names venv_base_name --description 'Enable virtualenv'
2-
set -l python_version (asdf current python | awk '{ print $2 }')
3-
set -l python_bin (asdf where python)"/bin/python"
2+
set -l python_version (mise current python)
3+
set -l python_bin (mise where python)"/bin/python"
44

55
if not test -n "$venv_base_name"
66
set venv_base_name (basename $PWD | tr . -)

fish/functions/venv.fish

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ function venv --argument-names python_version venv_base_name --description 'Crea
22
set -l python_bin
33

44
if not test -n "$python_version"
5-
# Use default python version set by asdf
6-
set python_version (asdf current python | awk '{ print $2 }')
5+
# Use default python version set by mise
6+
set python_version (mise current python)
77
end
88
echo "Using python version of $python_version"
99

@@ -12,7 +12,7 @@ function venv --argument-names python_version venv_base_name --description 'Crea
1212
end
1313
echo "Using venv base name of $venv_base_name"
1414

15-
set python_bin (asdf where python)"/bin/python"
15+
set python_bin (mise where python)"/bin/python"
1616
if not test -e $python_bin
1717
echo "Python version `$python_version` is not installed."
1818
return 1
@@ -24,5 +24,5 @@ function venv --argument-names python_version venv_base_name --description 'Crea
2424
$python_bin -m venv $HOME/.virtualenvs/$venv_name
2525
source $HOME/.virtualenvs/$venv_name/bin/activate.fish
2626

27-
asdf local python $venv_name
27+
mise use python@$venv_name
2828
end

0 commit comments

Comments
 (0)