Timeline for why is shell (new terminal, new tmux panes/windows) slow to load?
Current License: CC BY-SA 4.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 27, 2022 at 16:09 | vote | accept | alec | ||
| Jun 2, 2021 at 5:35 | comment | added | cas | You are using oh-my-zsh - depending on what OMZ plugins you use, this can make the prompt take several seconds (or even longer) to appear (sometimes just the shell's initial prompt, sometimes every time the prompt is printed...i.e. after every single command you enter). Fancy prompts have a cost, and the fancier the prompt, the bigger the cost. | |
| Jun 1, 2021 at 23:16 | comment | added | alec | PS4='%D{%T.%3.} %N:%i> ' script -c 'exec zsh --login -o xtrace' gives me more than 11,000 lines.... that seems a bit unmanageable.... | |
| Jun 1, 2021 at 17:32 | comment | added | Stéphane Chazelas | In the current working directory where you started the script command from. See man script | |
| Jun 1, 2021 at 17:22 | answer | added | alec | timeline score: 1 | |
| Jun 1, 2021 at 17:10 | history | edited | alec | CC BY-SA 4.0 | deleted 241 characters in body |
| Jun 1, 2021 at 17:04 | history | edited | terdon♦ | CC BY-SA 4.0 | added 1 character in body |
| Jun 1, 2021 at 16:56 | comment | added | alec | @StéphaneChazelas where would i find that typescript file? | |
| Jun 1, 2021 at 16:53 | comment | added | Stéphane Chazelas | You could run PS4='%D{%T.%3.} %N:%i> ' script -c 'exec zsh --login -o xtrace', exit, and then look into the typescript file where all the time is spent. | |
| Jun 1, 2021 at 16:49 | history | edited | alec | CC BY-SA 4.0 | added 243 characters in body |
| Jun 1, 2021 at 16:49 | comment | added | secemp9 | what about the zsh config file? does using a smaller one/default one change anything? | |
| Jun 1, 2021 at 16:46 | comment | added | alec | disabling the plugins (including in "core" ohmyzsh) doesn't seem to deliver any performance improvement | |
| Jun 1, 2021 at 16:38 | comment | added | secemp9 | Never used Zsh before, but since it's a shell and that sounds like a similar problem that you can have on bash...I'm guessing it might be either your zsh config or the plugins/extension you installed for Zsh which slow things down. (you could try with/without them and see the difference in speed to make sure) | |
| Jun 1, 2021 at 16:33 | history | asked | alec | CC BY-SA 4.0 |