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

cmatrix is not showing if used with timeout in .bashrc file #144

Open
hiruthicShaSS opened this issue Feb 16, 2022 · 4 comments
Open

cmatrix is not showing if used with timeout in .bashrc file #144

hiruthicShaSS opened this issue Feb 16, 2022 · 4 comments
Labels

Comments

@hiruthicShaSS
Copy link

Describe the bug
Unable to run the cmatrix at startup with a timeout.
I am trying to run the cmtarix for 1 second everytime the terminal is opened using timeout 1s cmatrix, but it doesnt work. It just waits for a second or X seconds provided in timeout and the cmatrix is not showing.

To Reproduce
Steps to reproduce the behavior:
Add a entry in .bashrc file: timeout 1s cmatrix
Then open a new terminal.

Expected behavior
It should run cmatrix for 1 second and then stop.

Screenshots
.bashrc file:
image
It waits for a second (or X seconds) but no matrix effect:

2022-02-16.15-30-34.mp4
  • OS: Ubuntu
  • Version 20.04.3 LTS

Additional context
Timeout command with other commands like ping are working fine with .bashrc file but only the cmatrix is not wokring, althoug cmatrix with timeout is working fine in terminal if the command is issued manually.

2022-02-16.15-29-31.mp4

I do realize this is so dumb of me to ask this as a issue, but any help is appreciated😇🙏.

@hiruthicShaSS
Copy link
Author

This works fine in zsh shell with the timeout but not in vannila bash shell

@abishekvashok
Copy link
Owner

hmm interesting, can you try increasing the length of the timeout? Like try for 60s?

@hiruthicShaSS
Copy link
Author

I tried increasing the timeout and no luck, still the bash prompt waits for x seconds and then the prompt appears, no matrix effect.

@tigion
Copy link

tigion commented Nov 29, 2022

The following command may be a workaround:

((sleep 1 && pkill -3 cmatrix) &) > /dev/null; cmatrix

Disadvantage: It kills all running cmatrix processes.

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

No branches or pull requests

3 participants