Replace mise-activate with simple wrapper scripts and ENV vars

The prompting for this change is to use mise within ksh/oksh without
having to rely on zsh (such as `zsh -c "mise activate zsh"` or
otherwise). I kind of like the simplicity of this, and then I can still
easily change versions as needed in a given project by sourcing a file
which exports different vars for target language versions, or I can just
do manual export commands from the shell.
This commit is contained in:
2025-11-16 01:04:07 -06:00
parent 7ef1d2f391
commit a35cd568ce
6 changed files with 15 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ coreutils,package_manager,linux: name='',,,
findutils,package_manager,linux: name='',,, findutils,package_manager,linux: name='',,,
make,package_manager,,,, make,package_manager,,,,
cmake,package_manager,,,, cmake,package_manager,,,,
mise,build_custom,,,,TODO implement the build_custom script for this
mpv,package_manager,,,, mpv,package_manager,,,,
kitty,package_manager,macos: name='--cask kitty',,, kitty,package_manager,macos: name='--cask kitty',,,
zsh,package_manager,,,, zsh,package_manager,,,,
1 name kind os_overrides distro_overrides system_type_overrides notes
6 findutils package_manager linux: name=''
7 make package_manager
8 cmake package_manager
9 mise build_custom TODO implement the build_custom script for this
10 mpv package_manager
11 kitty package_manager macos: name='--cask kitty'
12 zsh package_manager

View File

@@ -62,6 +62,5 @@ alias weather='curl "wttr.in/dfw?2&F"'
alias shrug='echo "¯\\_(ツ)_/¯"' alias shrug='echo "¯\\_(ツ)_/¯"'
# programming and language setup # programming and language setup
[[ -n $(command -v mise) ]] && eval "$(mise activate zsh)"
export DEVKITARM=/opt/devkitpro/devkitARM export DEVKITARM=/opt/devkitpro/devkitARM

3
src_files/.local/bin/go Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
mise exec go@$MISE_GO_VERSION -- go "$@"

3
src_files/.local/bin/python Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
mise exec python@$MISE_PYTHON_VERSION -- python "$@"

3
src_files/.local/bin/ruby Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
mise exec ruby@$MISE_RUBY_VERSION -- ruby "$@"

View File

@@ -41,6 +41,11 @@ export GIT_EDITOR="$EDITOR"
# obsidian # obsidian
export OBSIDIAN_WORKSPACES_TO_CONFIGURE="$DIR_NOTES," # ,-delimitted list of dirs export OBSIDIAN_WORKSPACES_TO_CONFIGURE="$DIR_NOTES," # ,-delimitted list of dirs
# language and tool vars
export MISE_GO_VERSION="1.25.1"
export MISE_PYTHON_VERSION="3.13.7"
export MISE_RUBY_VERSION="3.4.7"
# reaper # reaper
export DIR_REAPER_PORTABLE_SHARED="$DIR_USER_OPT/reaper-portable/shared" export DIR_REAPER_PORTABLE_SHARED="$DIR_USER_OPT/reaper-portable/shared"
export DIR_REAPER_PORTABLE_LINUX="$DIR_USER_OPT/reaper-portable/linux" export DIR_REAPER_PORTABLE_LINUX="$DIR_USER_OPT/reaper-portable/linux"