feat(mise): add a new tool: mise

This commit is contained in:
Sergio Laín 2024-04-04 15:50:39 +02:00
parent 30087e24fb
commit a21240d642
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
9 changed files with 62 additions and 3 deletions

View file

@ -45,12 +45,14 @@
- tgpt-bin - tgpt-bin
- vscodium-bin - vscodium-bin
- vscodium-marketplace-bin - vscodium-marketplace-bin
- mise
# Cargo # Cargo
- name: Install Rust Packages - name: Install Rust Packages
cargo: cargo:
name: name:
- cargo-update - cargo-update
- cargo-binstall
# Npm # Npm
- name: Install Npm Packages - name: Install Npm Packages

View file

@ -0,0 +1,10 @@
# if "usage" is not installed show an error
if ! command -v usage &>/dev/null
echo >&2
echo "Error: usage CLI not found. This is required for completions to work in mise." >&2
echo "See https://usage.jdx.dev for more information." >&2
return 1
end
set _usage_spec_mise (mise usage | string collect)
complete -xc mise -a '(usage complete-word -s "$_usage_spec_mise" -- (commandline -cop) (commandline -t))'

View file

@ -0,0 +1 @@
mise activate fish | source

View file

@ -16,7 +16,6 @@ set -xg CARGO_HOME $XDG_DATA_HOME/cargo
set -xg LEIN_HOME $XDG_DATA_HOME/lein set -xg LEIN_HOME $XDG_DATA_HOME/lein
set -xg NUGET_PACKAGES $XDG_CACHE_HOME/NuGetPackages set -xg NUGET_PACKAGES $XDG_CACHE_HOME/NuGetPackages
set -xg ANDROID_HOME $XDG_DATA_HOME/android set -xg ANDROID_HOME $XDG_DATA_HOME/android
set -xg BUN_INSTALL $XDG_DATA_HOME/bun
set -xg NODE_REPL_HISTORY $XDG_DATA_HOME/node_repl_history set -xg NODE_REPL_HISTORY $XDG_DATA_HOME/node_repl_history
set -xg DOCKER_CONFIG $XDG_CONFIG_HOME/docker set -xg DOCKER_CONFIG $XDG_CONFIG_HOME/docker
set -xg SQLITE_HISTORY $XDG_DATA_HOME/sqlite_history set -xg SQLITE_HISTORY $XDG_DATA_HOME/sqlite_history
@ -55,7 +54,6 @@ fish_add_path /sbin
fish_add_path /usr/lib/rustup/bin fish_add_path /usr/lib/rustup/bin
fish_add_path /usr/lib/go/bin fish_add_path /usr/lib/go/bin
fish_add_path $HOME/.dotnet/tools fish_add_path $HOME/.dotnet/tools
fish_add_path $BUN_INSTALL/bin
fish_add_path $XDG_DATA_HOME/bob/nvim-bin fish_add_path $XDG_DATA_HOME/bob/nvim-bin
fish_add_path $XDG_DATA_HOME/npm/bin fish_add_path $XDG_DATA_HOME/npm/bin
fish_add_path $XDG_DATA_HOME/nvim/mason/bin fish_add_path $XDG_DATA_HOME/nvim/mason/bin

3
.config/mise/.github/README.md vendored Normal file
View file

@ -0,0 +1,3 @@
<div align="center">
<a href=""><img src="./title.png"></a>
</div>

BIN
.config/mise/.github/title.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

44
.config/mise/config.toml Normal file
View file

@ -0,0 +1,44 @@
[tools]
# global tool versions go here
# you can set these with `mise use -g`
# node = 'lts' # Let the system manage it
# python = ['3.11.8'] # Let the system manage it
usage = "latest"
bun = "latest"
[settings]
# plugins can read the versions files used by other version managers (if enabled by the plugin)
# for example, .nvmrc in the case of node's nvm
legacy_version_file = true # enabled by default (unlike asdf)
# configure `mise install` to always keep the downloaded archive
always_keep_download = false # deleted after install by default
always_keep_install = false # deleted on failure by default
# configure how frequently (in minutes) to fetch updated plugin repository changes
# this is updated whenever a new runtime is installed
# (note: this isn't currently implemented but there are plans to add it: https://github.com/jdx/mise/issues/128)
plugin_autoupdate_last_check_duration = '1 week' # set to 0 to disable updates
# config files with these prefixes will be trusted by default
trusted_config_paths = ['~/Repos']
verbose = false # set to true to see full installation output, see `MISE_VERBOSE`
asdf_compat = false # set to true to ensure .tool-versions will be compatible with asdf, see `MISE_ASDF_COMPAT`
jobs = 4 # number of plugins or runtimes to install in parallel. The default is `4`.
raw = false # set to true to directly pipe plugins to stdin/stdout/stderr
yes = false # set to true to automatically answer yes to all prompts
not_found_auto_install = true # see MISE_NOT_FOUND_AUTO_INSTALL
task_output = "prefix" # see Tasks Runner for more information
paranoid = false # see MISE_PARANOID
shorthands_file = '~/.config/mise/shorthands.toml' # path to the shorthands file, see `MISE_SHORTHANDS_FILE`
disable_default_shorthands = false # disable the default shorthands, see `MISE_DISABLE_DEFAULT_SHORTHANDS`
env_file = '.env' # load env vars from a dotenv file, see `MISE_ENV_FILE`
experimental = true # enable experimental features
# configure messages displayed when entering directories with config files
status = { missing_tools = "if_other_versions_installed", show_env = false, show_tools = false }

View file

@ -113,7 +113,7 @@ nemo-python 6.0.1-1
net-tools 2.10-2 net-tools 2.10-2
network-manager-applet 1.36.0-1 network-manager-applet 1.36.0-1
networkmanager 1.46.0-2 networkmanager 1.46.0-2
nodejs 21.7.1-1 nodejs 21.7.2-1
npm 10.5.1-1 npm 10.5.1-1
ntfs-3g 2022.10.3-1 ntfs-3g 2022.10.3-1
nvtop 3.1.0-1 nvtop 3.1.0-1

View file

@ -20,6 +20,7 @@ lazydocker 0.23.1-1
lazynpm 0.1.4-1 lazynpm 0.1.4-1
librewolf-bin 124.0.1-1 librewolf-bin 124.0.1-1
ludusavi 0.22.0-2 ludusavi 0.22.0-2
mise 2024.4.0-1
needrestart 3.6-3 needrestart 3.6-3
nwg-displays 0.3.16-1 nwg-displays 0.3.16-1
obs-pipewire-audio-capture-bin 1.1.4-1 obs-pipewire-audio-capture-bin 1.1.4-1