jamesob / desk

A lightweight workspace manager for the shell
MIT License
2.54k stars 111 forks source link

Description of aliases and functions are being duplicated #91

Open delucca opened 4 years ago

delucca commented 4 years ago

Desired behaviour

When I create the following alias inside a desk:

# Tmux shortcut
alias t="tmux"

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

# 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.