Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_alias_usage prints all history #125

Open
1 of 4 tasks
Adrien-LUDWIG opened this issue May 4, 2023 · 0 comments
Open
1 of 4 tasks

check_alias_usage prints all history #125

Adrien-LUDWIG opened this issue May 4, 2023 · 0 comments

Comments

@Adrien-LUDWIG
Copy link

Issue Details

check_alias_usage prints all history entries before printing alias occurrencies.

$ check_alias_usage                                                               
entry='which zsh'
entry='firefox &'
entry='ls'
...
entry='cd'
131: ls='ls --color=tty'
...
0: 1='cd -1'

It does not correspond to the behaviour I understand from the source:

# print current progress
let "current = current + 1"
printf "[$current/$total]\r"
done
# Clear all previous line output
printf "\r\033[K"
# Print ordered usage
for key in ${(k)usage}; do
echo "${usage[$key]}: $key='${aliases[$key]}'"
done | sort -rn -k1

Which should be, if I am not mistaken:

  1. Print advancement as a ratio
  2. Clear advancement
  3. Print ordered alias usage

Operating System (uname -a)

Linux xxx-inspiron157510 6.1.25-1-MANJARO #1 SMP PREEMPT_DYNAMIC Thu Apr 20 13:48:36 UTC 2023 x86_64 GNU/Linux

zsh version (zsh --version)

zsh 5.9 (x86_64-pc-linux-gnu)

you-should-use version (echo "$YSU_VERSION")

1.7.3

How is zsh-you-should-use installed?

  • zplug
  • oh-my-zsh
  • Antigen
  • Other (please specify)

Steps to reproduce the issue

gist link to your zshrc

My zshrc and antigen configuration file are on my dotfiles repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant