Skip to content

Commit

Permalink
chore(main): follow upstream rename rtx->mise
Browse files Browse the repository at this point in the history
Follow upstream rename from rtx to mise.
Expects binary to be called mise.

Signed-off-by: Capi Etheriel <barraponto@gmail.com>
  • Loading branch information
barraponto authored and joke committed Jan 6, 2024
1 parent b206611 commit 5c874e3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
repository:
name: zim-rtx
description: zim module for rtx
topics: zim, zimfw, module, zsh, rtx
name: zim-mise
description: zim module for mise
topics: zim, zimfw, module, zsh, mise
private: false
has_issues: true
has_projects: false
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
*.zwc
rtx-activate.zsh
mise-activate.zsh
6 changes: 3 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
= zim-rtx
= zim-mise

https://github.com/zimfw/zimfw[zim module] for https://github.com/jdxcode/rtx[rtx].
https://github.com/zimfw/zimfw[zim module] for https://github.com/jdxcode/mise[mise].

TIP: Add this module as early as possible to the `.zimrc` file.
This allows other plugins to detect apps installed by `rtx`.
This allows other plugins to detect apps installed by `mise`.
2 changes: 1 addition & 1 deletion functions/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_rtx
_mise
10 changes: 5 additions & 5 deletions init.zsh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(( ${+commands[rtx]} )) && () {
local command=${commands[rtx]}
(( ${+commands[mise]} )) && () {
local command=${commands[mise]}

# generating activation file
local activatefile=$1/rtx-activate.zsh
local activatefile=$1/mise-activate.zsh
if [[ ! -e $activatefile || $activatefile -ot $command ]]; then
$command activate zsh >| $activatefile
zcompile -UR $activatefile
Expand All @@ -12,9 +12,9 @@
source <($command hook-env -s zsh)

# generating completions
local compfile=$1/functions/_rtx
local compfile=$1/functions/_mise
if [[ ! -e $compfile || $compfile -ot $command ]]; then
$command complete --shell zsh >| $compfile
print -u2 -PR "* Detected a new version 'rtx'. Regenerated completions."
print -u2 -PR "* Detected a new version 'mise'. Regenerated completions."
fi
} ${0:h}

0 comments on commit 5c874e3

Please sign in to comment.