Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions e2e/cli/test_alias
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ mise alias set tiny xxx 2
assert_contains "mise alias ls tiny" "tiny xxx 2"
mise alias unset tiny xxx
assert_not_contains "mise alias ls" "tiny xxx"

assert "mise config set alias.nushell aqua:nushell/nushell"
assert "mise x nushell -- nu --version"
3 changes: 2 additions & 1 deletion src/backend/aqua.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ impl Backend for AquaBackend {

impl AquaBackend {
pub fn from_arg(ba: BackendArg) -> Self {
let mut id = ba.tool_name.as_str();
let full = ba.full();
let mut id = full.split_once(":").unwrap_or(("", &full)).1;
if !id.contains("/") {
id = REGISTRY
.get(id)
Expand Down
Loading