<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Command Aliasing on MoskitoHero</title><link>https://moskitohero.com/tags/command-aliasing/</link><description>Recent content in Command Aliasing on MoskitoHero</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 12 Jun 2026 15:19:51 +0200</lastBuildDate><atom:link href="https://moskitohero.com/tags/command-aliasing/index.xml" rel="self" type="application/rss+xml"/><item><title>How I Use Mise to Harmonize My Project Commands</title><link>https://moskitohero.com/post/2026-06-15-how-i-use-mise-to-harmonize-my-project-commands/</link><pubDate>Fri, 12 Jun 2026 15:19:51 +0200</pubDate><guid>https://moskitohero.com/post/2026-06-15-how-i-use-mise-to-harmonize-my-project-commands/</guid><description>Mise is a great tool to define and alias commands across all your projects. I use it to avoid having to remember different commands for each project.</description><content:encoded><![CDATA[<div class="paragraph">
<p>Like most developers, I hop from one project to another daily. I switch from Ruby to TypeScript, Terraform or Python. Everything goes fine until I have to <strong>run</strong> something.</p>
</div>
<div class="paragraph">
<p>What does this tool use, already? Is it Yarn? Make? Or framework-native commands? How do I launch a console? Update snapshots when I run the tests? Lint or format the code? I usually roam through the readme, or the Makefile, or whatever makes senses to get to the command I was looking for.</p>
</div>
<div class="paragraph">
<p>What if I had just one command to remember per action? One command that would be valid for every single project I am working with?</p>
</div>
<div class="paragraph">
<p>Mise allows you to define tasks globally, or locally in your <code>mise.local.toml</code>.</p>
</div>
<div class="paragraph">
<p>I have defined a set of basic mise tasks that cover most of my needs in most projects. In my global config, they default to my most common setup/language. For instance, <code>mise run server</code> will alias to <code>bin/rails server</code>, <code>mise run test</code> will alias to <code>bundle exec rspec</code>. This will be fine for most of my rails projects.</p>
</div>
<div class="paragraph">
<p>But some projects I work on use Minitest. So I will create a <code>mise.local.toml</code> in the root directory of that project and change the command to <code>bundle exec test</code>.</p>
</div>
<div class="paragraph">
<p>The front-end application server will also be configured locally to run <code>yarn dev</code> or whatever makes sense to that project.</p>
</div>
<div class="paragraph">
<p>The same goes for linting, formatting, building, or any other task.</p>
</div>
<div class="paragraph">
<p>The <code>mise.local.toml</code> file is globally git-ignored, so it is just my own sauce, and I am not bothering any of my co-workers with my private commands.</p>
</div>
]]></content:encoded></item></channel></rss>