jamesob / jamesob/desk

Description of aliases and functions are being duplicated

Open
#91 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
2.6k
Forks
113
PR merge metrics
No merged PRs in 30d

Description

## Desired behaviour

When I create the following alias inside a desk:

~~~bash
# Tmux shortcut
alias t="tmux"
~~~

And add, to the same desk, the following function:

~~~bash
# Do something cool
function tns() {
...
}
~~~

I would to receive the following output when type `desk` (with the desk loaded)

```
global - Common shared configurations

t Tmux shortcut
tns Do something cool
```

## Actual behaviour

When I do that, I receive:
```
global - Common shared configurations

t Tmux shortcut
# Do something cool Do something cool
tns Do something cool
```

## Aditional info

I've noticed that this only happens with aliases that has a high similarity with functions.

For example, I have a `k` alias and a `kl` alias. This won't happen. But if I have a `k` alias and a `kl` function this happens.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue by creating the shown alias and function in one desk, then run the `desk` command with that desk loaded. Trace how alias and function descriptions are collected and identify why the function comment appears twice; done means each entry is listed once with its description shown once.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.