Zsh aliases

Retrieve and parse zsh aliases from the environment or from a file.

This package is written for deno and compiled for node using dnt.

Usage (for deno)

import { evaluatedAliases } from "https://deno.land/x/shell_aliases/mod.ts";

const aliases = await evaluatedAliases();
// or
const aliases = aliasesFromFile(pathToAliasesFile);

// aliases will be an array like:
// [
//   {
//     key: "..",
//     value: "cd .."
//   },
//   {
//     key: "ll",
//     value: "ls -l"
//   }
// ]

Testing

deno task test

NPM publishing

There is a build script that uses dnt and compiles a npm package.

deno run -A _build.ts <version>