Skip to content

Commit

Permalink
doc: Expand aliases section
Browse files Browse the repository at this point in the history
  • Loading branch information
juanibiapina committed May 23, 2024
1 parent 285c39f commit 7866742
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,20 @@ file. The special comments are:

## Aliases

To define an alias, simply create a symlink. In the `libexec` directory:
To define an alias, simply create a symlink. For example, in the `libexec`
directory:

```sh
ln -s user-script1 us1
```

Aliases can also point to scripts in subdirectories:
```sh
ln -s nested/user-script2 us2
```

The full power of symlinks can be used to create complex command structures.

## Sharing code between scripts

When invoking subcommands, `sub` sets an environment variable called
Expand Down

0 comments on commit 7866742

Please sign in to comment.