bash-it icon indicating copy to clipboard operation
bash-it copied to clipboard

Huge delay between commands

Open Erythros opened this issue 3 years ago • 4 comments

First timer to bash-it. There's one issue I couldn't find a solution for. I open the terminal, run a command - any command - like ls, I get the results instantly, but then I have to wait ~5 - 10 seconds until the next "entry" line where I type a new command shows up.

At first, I thought there's a delay set on purpose, but I couldn't find anything related to it in the documents.

As soon as I install, my terminal is back to "normal" where within one second of typing ls I get my results and the possibility to type the next command.

All settings are default and I'm using Windows-Terminal. Everything else is default, as I just got a new laptop and didn't get the chance to install much else.

Erythros avatar Aug 15 '21 23:08 Erythros

Hi @Erythros - Quick question : Do you have a bash-it theme enabled? If so which one?

davidpfarrell avatar Aug 16 '21 20:08 davidpfarrell

Hi @Erythros - Quick question : Do you have a bash-it theme enabled? If so which one?

Just the default one.

○ → echo $BASH_IT_THEME
bobby

Erythros avatar Aug 16 '21 23:08 Erythros

Whats up @Erythros? Does the slowness usually occur when you are inside a git repository, or just in any folders? If it is really about git- there are multiple solutions specified in our docs

If it just happens and not related to git. I would be happy if you could provide me with the output of running the bash-it doctor command. Please pay attention into which steps takes the longest and seems to be slowing down the prompt

Hope to hear back from you soon :smile:

NoahGorny avatar Aug 17 '21 21:08 NoahGorny

Same problem but with export BASH_IT_THEME='brainy' theme.

When I commented that line, everything back to normal.

Ok I think I found it. If I set THEME_SHOW_SUDO to false, then there is no delay.

THEME_SHOW_SUDO=${THEME_SHOW_SUDO:-"false"}

LAST UPDATE !! I had the following issue with sudo https://www.globo.tech/learning-center/sudo-unable-to-resolve-host-explained/ I followed the instructions and now sudo is running with no delay!

So it was not an issue of the theme, but a huge delay from sudo command!

hackhowtofaq avatar Jul 13 '22 11:07 hackhowtofaq