What changes to a .zshrc file could cause every terminal one opens to output: '@home/.zshrc:1: command not found: xyz'?
Clash Royale CLAN TAG#URR8PPP
('xyz' can be as far as I know, anything that is on my first line of .zshrc. Even an empty line as a first line of .zshrc returns the same output upon opening a terminal but ending with whitespace. I also tried pwd
thinking of all instances of terminal input that could be found somewhere and what I assume is one of the most universal commands, but it too can not be found.)
I'm certain the issue has arisen strictly from changes in my .zshrc file because the problem occurred after hours of tweaking it/closing & opening terminals to test fixes to a previous issue involving aliases conflicting between .zshrc and oh-my-zsh (Namely, I was unaware oh-my-zsh added a line to source somefile that somehow takes precedence over my custom aliases on .zshrc. See link: Why doesn't 'sourcing' my .zshrc file change my aliases?).
Potentially relevent/generally helpful info:
-Problem occurs in both gnome-terminal(preferred and used almost exclusively) and urxvt(backup).
-Other than this consistent 1st hiccup, everything else works perfectly fine. Even all my aliases and oh-my-zsh schemes function properly.
--fortune -o
was my initial first line before I began experimenting to find solutions. (it also returned command not found: fortune
)
--A big indicator of what I potentially messed up probably involves oh-my-zsh in someway because my last attempt to fix the problem mentioned in the link above, was to add
source $home/.zshrc
directly below the line containing source $ZSH/oh-my-zsh.sh
The idea behind this was my thinking that source
ing my custom .zshrc file would cause the aliases within that file to take precedence over whatever aliases are being determined by the oh-my-zsh file which I don't much know about/understand/how it got there to begin with. After saving the file, closing the terminal and opening a new one up to test the alias changes, a very confusing bug occured. The terminal opened up normally and the color scheme and everything else about it aesthetically was accurate, but it was looping random fortunes at a fairly rapid pace in an unending loop. No common keybindings worked to stop it(Ctrl+C, Ctrl+D, Esc, Enter, 'Q'). So I had to close it with a gnome keybinding. The error persisted on urxvt in the exact same manner. Removing the source $home/.zshrc
line solved my looping fortune issue but caused my current conundrum
shell zsh gnome-terminal oh-my-zsh rxvt
|
show 7 more comments
('xyz' can be as far as I know, anything that is on my first line of .zshrc. Even an empty line as a first line of .zshrc returns the same output upon opening a terminal but ending with whitespace. I also tried pwd
thinking of all instances of terminal input that could be found somewhere and what I assume is one of the most universal commands, but it too can not be found.)
I'm certain the issue has arisen strictly from changes in my .zshrc file because the problem occurred after hours of tweaking it/closing & opening terminals to test fixes to a previous issue involving aliases conflicting between .zshrc and oh-my-zsh (Namely, I was unaware oh-my-zsh added a line to source somefile that somehow takes precedence over my custom aliases on .zshrc. See link: Why doesn't 'sourcing' my .zshrc file change my aliases?).
Potentially relevent/generally helpful info:
-Problem occurs in both gnome-terminal(preferred and used almost exclusively) and urxvt(backup).
-Other than this consistent 1st hiccup, everything else works perfectly fine. Even all my aliases and oh-my-zsh schemes function properly.
--fortune -o
was my initial first line before I began experimenting to find solutions. (it also returned command not found: fortune
)
--A big indicator of what I potentially messed up probably involves oh-my-zsh in someway because my last attempt to fix the problem mentioned in the link above, was to add
source $home/.zshrc
directly below the line containing source $ZSH/oh-my-zsh.sh
The idea behind this was my thinking that source
ing my custom .zshrc file would cause the aliases within that file to take precedence over whatever aliases are being determined by the oh-my-zsh file which I don't much know about/understand/how it got there to begin with. After saving the file, closing the terminal and opening a new one up to test the alias changes, a very confusing bug occured. The terminal opened up normally and the color scheme and everything else about it aesthetically was accurate, but it was looping random fortunes at a fairly rapid pace in an unending loop. No common keybindings worked to stop it(Ctrl+C, Ctrl+D, Esc, Enter, 'Q'). So I had to close it with a gnome keybinding. The error persisted on urxvt in the exact same manner. Removing the source $home/.zshrc
line solved my looping fortune issue but caused my current conundrum
shell zsh gnome-terminal oh-my-zsh rxvt
I'm wondering if you can get closer to finding out what's wrong by starting zsh with -v (i.e. open any terminal with any shell, and in there startzsh -v
). This should tell you what gets executed and what scripts get sourced from other scripts (will probably be very much output). I'm wondering if yourzshrc
gets sourced a second time, on top of the regular call byzsh
).
– pseyfert
Jan 31 at 11:32
Its a pretty excessive amount of output that I can't make much sense of. Should I throw it in a pastebin or something?
– Grant
Jan 31 at 11:42
the "big indicator" is probably a red herring. by callingsource $HOME/.zshrc
from within.zshrc
you just created an infinite loop of a script calling itself.
– pseyfert
Jan 31 at 11:47
hm, i was afraid the output could be too big to handle. and someone other than you might even have more problem as they're unfamiliar with what you have in your scripts (which you could recognize). Can you try going towards a minimum working example? i.e. remove things from your .zshrc (make a backup before, or even put it in version control to go through your steps) until the error disappears? I suspect once you exclude oh-my-zsh.sh the -v output might even become readable, and we'll know if the problem is on your side / on the oh-my-zsh side / a combination of both.
– pseyfert
Jan 31 at 11:49
1
"every command possible followed by my usual .zshrc file" okay, so what is the last thing before your zshrc? since apparently the beginning of your zshrc is command-not-found'ed something that happens before tries to run it (or expects a command). looking at this post, could there be something buggy in your .zprofile or .zshenv (or worse, in /etc/zsh*)
– pseyfert
Jan 31 at 16:47
|
show 7 more comments
('xyz' can be as far as I know, anything that is on my first line of .zshrc. Even an empty line as a first line of .zshrc returns the same output upon opening a terminal but ending with whitespace. I also tried pwd
thinking of all instances of terminal input that could be found somewhere and what I assume is one of the most universal commands, but it too can not be found.)
I'm certain the issue has arisen strictly from changes in my .zshrc file because the problem occurred after hours of tweaking it/closing & opening terminals to test fixes to a previous issue involving aliases conflicting between .zshrc and oh-my-zsh (Namely, I was unaware oh-my-zsh added a line to source somefile that somehow takes precedence over my custom aliases on .zshrc. See link: Why doesn't 'sourcing' my .zshrc file change my aliases?).
Potentially relevent/generally helpful info:
-Problem occurs in both gnome-terminal(preferred and used almost exclusively) and urxvt(backup).
-Other than this consistent 1st hiccup, everything else works perfectly fine. Even all my aliases and oh-my-zsh schemes function properly.
--fortune -o
was my initial first line before I began experimenting to find solutions. (it also returned command not found: fortune
)
--A big indicator of what I potentially messed up probably involves oh-my-zsh in someway because my last attempt to fix the problem mentioned in the link above, was to add
source $home/.zshrc
directly below the line containing source $ZSH/oh-my-zsh.sh
The idea behind this was my thinking that source
ing my custom .zshrc file would cause the aliases within that file to take precedence over whatever aliases are being determined by the oh-my-zsh file which I don't much know about/understand/how it got there to begin with. After saving the file, closing the terminal and opening a new one up to test the alias changes, a very confusing bug occured. The terminal opened up normally and the color scheme and everything else about it aesthetically was accurate, but it was looping random fortunes at a fairly rapid pace in an unending loop. No common keybindings worked to stop it(Ctrl+C, Ctrl+D, Esc, Enter, 'Q'). So I had to close it with a gnome keybinding. The error persisted on urxvt in the exact same manner. Removing the source $home/.zshrc
line solved my looping fortune issue but caused my current conundrum
shell zsh gnome-terminal oh-my-zsh rxvt
('xyz' can be as far as I know, anything that is on my first line of .zshrc. Even an empty line as a first line of .zshrc returns the same output upon opening a terminal but ending with whitespace. I also tried pwd
thinking of all instances of terminal input that could be found somewhere and what I assume is one of the most universal commands, but it too can not be found.)
I'm certain the issue has arisen strictly from changes in my .zshrc file because the problem occurred after hours of tweaking it/closing & opening terminals to test fixes to a previous issue involving aliases conflicting between .zshrc and oh-my-zsh (Namely, I was unaware oh-my-zsh added a line to source somefile that somehow takes precedence over my custom aliases on .zshrc. See link: Why doesn't 'sourcing' my .zshrc file change my aliases?).
Potentially relevent/generally helpful info:
-Problem occurs in both gnome-terminal(preferred and used almost exclusively) and urxvt(backup).
-Other than this consistent 1st hiccup, everything else works perfectly fine. Even all my aliases and oh-my-zsh schemes function properly.
--fortune -o
was my initial first line before I began experimenting to find solutions. (it also returned command not found: fortune
)
--A big indicator of what I potentially messed up probably involves oh-my-zsh in someway because my last attempt to fix the problem mentioned in the link above, was to add
source $home/.zshrc
directly below the line containing source $ZSH/oh-my-zsh.sh
The idea behind this was my thinking that source
ing my custom .zshrc file would cause the aliases within that file to take precedence over whatever aliases are being determined by the oh-my-zsh file which I don't much know about/understand/how it got there to begin with. After saving the file, closing the terminal and opening a new one up to test the alias changes, a very confusing bug occured. The terminal opened up normally and the color scheme and everything else about it aesthetically was accurate, but it was looping random fortunes at a fairly rapid pace in an unending loop. No common keybindings worked to stop it(Ctrl+C, Ctrl+D, Esc, Enter, 'Q'). So I had to close it with a gnome keybinding. The error persisted on urxvt in the exact same manner. Removing the source $home/.zshrc
line solved my looping fortune issue but caused my current conundrum
shell zsh gnome-terminal oh-my-zsh rxvt
shell zsh gnome-terminal oh-my-zsh rxvt
asked Jan 31 at 11:05
GrantGrant
101
101
I'm wondering if you can get closer to finding out what's wrong by starting zsh with -v (i.e. open any terminal with any shell, and in there startzsh -v
). This should tell you what gets executed and what scripts get sourced from other scripts (will probably be very much output). I'm wondering if yourzshrc
gets sourced a second time, on top of the regular call byzsh
).
– pseyfert
Jan 31 at 11:32
Its a pretty excessive amount of output that I can't make much sense of. Should I throw it in a pastebin or something?
– Grant
Jan 31 at 11:42
the "big indicator" is probably a red herring. by callingsource $HOME/.zshrc
from within.zshrc
you just created an infinite loop of a script calling itself.
– pseyfert
Jan 31 at 11:47
hm, i was afraid the output could be too big to handle. and someone other than you might even have more problem as they're unfamiliar with what you have in your scripts (which you could recognize). Can you try going towards a minimum working example? i.e. remove things from your .zshrc (make a backup before, or even put it in version control to go through your steps) until the error disappears? I suspect once you exclude oh-my-zsh.sh the -v output might even become readable, and we'll know if the problem is on your side / on the oh-my-zsh side / a combination of both.
– pseyfert
Jan 31 at 11:49
1
"every command possible followed by my usual .zshrc file" okay, so what is the last thing before your zshrc? since apparently the beginning of your zshrc is command-not-found'ed something that happens before tries to run it (or expects a command). looking at this post, could there be something buggy in your .zprofile or .zshenv (or worse, in /etc/zsh*)
– pseyfert
Jan 31 at 16:47
|
show 7 more comments
I'm wondering if you can get closer to finding out what's wrong by starting zsh with -v (i.e. open any terminal with any shell, and in there startzsh -v
). This should tell you what gets executed and what scripts get sourced from other scripts (will probably be very much output). I'm wondering if yourzshrc
gets sourced a second time, on top of the regular call byzsh
).
– pseyfert
Jan 31 at 11:32
Its a pretty excessive amount of output that I can't make much sense of. Should I throw it in a pastebin or something?
– Grant
Jan 31 at 11:42
the "big indicator" is probably a red herring. by callingsource $HOME/.zshrc
from within.zshrc
you just created an infinite loop of a script calling itself.
– pseyfert
Jan 31 at 11:47
hm, i was afraid the output could be too big to handle. and someone other than you might even have more problem as they're unfamiliar with what you have in your scripts (which you could recognize). Can you try going towards a minimum working example? i.e. remove things from your .zshrc (make a backup before, or even put it in version control to go through your steps) until the error disappears? I suspect once you exclude oh-my-zsh.sh the -v output might even become readable, and we'll know if the problem is on your side / on the oh-my-zsh side / a combination of both.
– pseyfert
Jan 31 at 11:49
1
"every command possible followed by my usual .zshrc file" okay, so what is the last thing before your zshrc? since apparently the beginning of your zshrc is command-not-found'ed something that happens before tries to run it (or expects a command). looking at this post, could there be something buggy in your .zprofile or .zshenv (or worse, in /etc/zsh*)
– pseyfert
Jan 31 at 16:47
I'm wondering if you can get closer to finding out what's wrong by starting zsh with -v (i.e. open any terminal with any shell, and in there start
zsh -v
). This should tell you what gets executed and what scripts get sourced from other scripts (will probably be very much output). I'm wondering if your zshrc
gets sourced a second time, on top of the regular call by zsh
).– pseyfert
Jan 31 at 11:32
I'm wondering if you can get closer to finding out what's wrong by starting zsh with -v (i.e. open any terminal with any shell, and in there start
zsh -v
). This should tell you what gets executed and what scripts get sourced from other scripts (will probably be very much output). I'm wondering if your zshrc
gets sourced a second time, on top of the regular call by zsh
).– pseyfert
Jan 31 at 11:32
Its a pretty excessive amount of output that I can't make much sense of. Should I throw it in a pastebin or something?
– Grant
Jan 31 at 11:42
Its a pretty excessive amount of output that I can't make much sense of. Should I throw it in a pastebin or something?
– Grant
Jan 31 at 11:42
the "big indicator" is probably a red herring. by calling
source $HOME/.zshrc
from within .zshrc
you just created an infinite loop of a script calling itself.– pseyfert
Jan 31 at 11:47
the "big indicator" is probably a red herring. by calling
source $HOME/.zshrc
from within .zshrc
you just created an infinite loop of a script calling itself.– pseyfert
Jan 31 at 11:47
hm, i was afraid the output could be too big to handle. and someone other than you might even have more problem as they're unfamiliar with what you have in your scripts (which you could recognize). Can you try going towards a minimum working example? i.e. remove things from your .zshrc (make a backup before, or even put it in version control to go through your steps) until the error disappears? I suspect once you exclude oh-my-zsh.sh the -v output might even become readable, and we'll know if the problem is on your side / on the oh-my-zsh side / a combination of both.
– pseyfert
Jan 31 at 11:49
hm, i was afraid the output could be too big to handle. and someone other than you might even have more problem as they're unfamiliar with what you have in your scripts (which you could recognize). Can you try going towards a minimum working example? i.e. remove things from your .zshrc (make a backup before, or even put it in version control to go through your steps) until the error disappears? I suspect once you exclude oh-my-zsh.sh the -v output might even become readable, and we'll know if the problem is on your side / on the oh-my-zsh side / a combination of both.
– pseyfert
Jan 31 at 11:49
1
1
"every command possible followed by my usual .zshrc file" okay, so what is the last thing before your zshrc? since apparently the beginning of your zshrc is command-not-found'ed something that happens before tries to run it (or expects a command). looking at this post, could there be something buggy in your .zprofile or .zshenv (or worse, in /etc/zsh*)
– pseyfert
Jan 31 at 16:47
"every command possible followed by my usual .zshrc file" okay, so what is the last thing before your zshrc? since apparently the beginning of your zshrc is command-not-found'ed something that happens before tries to run it (or expects a command). looking at this post, could there be something buggy in your .zprofile or .zshenv (or worse, in /etc/zsh*)
– pseyfert
Jan 31 at 16:47
|
show 7 more comments
1 Answer
1
active
oldest
votes
The entirety of this issue hinged on 2 complications. The first was my bonehead mistake of thinking I could have a script source
itself. Perhaps this is possible in other contexts, but in my specific case it caused an infinite loop of my .zshrc calling itself. The second complication arose from a poor attempt to resolve the first issue: using libreoffice to edit a system configuration file. My infinte script call made all terminals unusable and with no other gui text editors available, I thought libreoffice would be fine for a single line change edit. When saving any textfile, it appears that libreoffice, as of this date, will prepend textfiles with a Byte Order Mark(https://en.wikipedia.org/wiki/Byte_order_mark). I don't know much about them at all, but I can say for certain that the default vim editor will not display them in any noticeable way without vim commands.
You can remove the aforementioned BOMs in vim, though.:set bomb?
will output bomb
if the current file does indeed have a BOM. Conversely, nobomb
will be returned if none are present.
And intuitively enough, you can have vim remove this with :set nobomb
Do remember to save the file afterward, though. Otherwise, no change will occur.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497909%2fwhat-changes-to-a-zshrc-file-could-cause-every-terminal-one-opens-to-output%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The entirety of this issue hinged on 2 complications. The first was my bonehead mistake of thinking I could have a script source
itself. Perhaps this is possible in other contexts, but in my specific case it caused an infinite loop of my .zshrc calling itself. The second complication arose from a poor attempt to resolve the first issue: using libreoffice to edit a system configuration file. My infinte script call made all terminals unusable and with no other gui text editors available, I thought libreoffice would be fine for a single line change edit. When saving any textfile, it appears that libreoffice, as of this date, will prepend textfiles with a Byte Order Mark(https://en.wikipedia.org/wiki/Byte_order_mark). I don't know much about them at all, but I can say for certain that the default vim editor will not display them in any noticeable way without vim commands.
You can remove the aforementioned BOMs in vim, though.:set bomb?
will output bomb
if the current file does indeed have a BOM. Conversely, nobomb
will be returned if none are present.
And intuitively enough, you can have vim remove this with :set nobomb
Do remember to save the file afterward, though. Otherwise, no change will occur.
add a comment |
The entirety of this issue hinged on 2 complications. The first was my bonehead mistake of thinking I could have a script source
itself. Perhaps this is possible in other contexts, but in my specific case it caused an infinite loop of my .zshrc calling itself. The second complication arose from a poor attempt to resolve the first issue: using libreoffice to edit a system configuration file. My infinte script call made all terminals unusable and with no other gui text editors available, I thought libreoffice would be fine for a single line change edit. When saving any textfile, it appears that libreoffice, as of this date, will prepend textfiles with a Byte Order Mark(https://en.wikipedia.org/wiki/Byte_order_mark). I don't know much about them at all, but I can say for certain that the default vim editor will not display them in any noticeable way without vim commands.
You can remove the aforementioned BOMs in vim, though.:set bomb?
will output bomb
if the current file does indeed have a BOM. Conversely, nobomb
will be returned if none are present.
And intuitively enough, you can have vim remove this with :set nobomb
Do remember to save the file afterward, though. Otherwise, no change will occur.
add a comment |
The entirety of this issue hinged on 2 complications. The first was my bonehead mistake of thinking I could have a script source
itself. Perhaps this is possible in other contexts, but in my specific case it caused an infinite loop of my .zshrc calling itself. The second complication arose from a poor attempt to resolve the first issue: using libreoffice to edit a system configuration file. My infinte script call made all terminals unusable and with no other gui text editors available, I thought libreoffice would be fine for a single line change edit. When saving any textfile, it appears that libreoffice, as of this date, will prepend textfiles with a Byte Order Mark(https://en.wikipedia.org/wiki/Byte_order_mark). I don't know much about them at all, but I can say for certain that the default vim editor will not display them in any noticeable way without vim commands.
You can remove the aforementioned BOMs in vim, though.:set bomb?
will output bomb
if the current file does indeed have a BOM. Conversely, nobomb
will be returned if none are present.
And intuitively enough, you can have vim remove this with :set nobomb
Do remember to save the file afterward, though. Otherwise, no change will occur.
The entirety of this issue hinged on 2 complications. The first was my bonehead mistake of thinking I could have a script source
itself. Perhaps this is possible in other contexts, but in my specific case it caused an infinite loop of my .zshrc calling itself. The second complication arose from a poor attempt to resolve the first issue: using libreoffice to edit a system configuration file. My infinte script call made all terminals unusable and with no other gui text editors available, I thought libreoffice would be fine for a single line change edit. When saving any textfile, it appears that libreoffice, as of this date, will prepend textfiles with a Byte Order Mark(https://en.wikipedia.org/wiki/Byte_order_mark). I don't know much about them at all, but I can say for certain that the default vim editor will not display them in any noticeable way without vim commands.
You can remove the aforementioned BOMs in vim, though.:set bomb?
will output bomb
if the current file does indeed have a BOM. Conversely, nobomb
will be returned if none are present.
And intuitively enough, you can have vim remove this with :set nobomb
Do remember to save the file afterward, though. Otherwise, no change will occur.
answered Feb 1 at 9:16
GrantGrant
101
101
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497909%2fwhat-changes-to-a-zshrc-file-could-cause-every-terminal-one-opens-to-output%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I'm wondering if you can get closer to finding out what's wrong by starting zsh with -v (i.e. open any terminal with any shell, and in there start
zsh -v
). This should tell you what gets executed and what scripts get sourced from other scripts (will probably be very much output). I'm wondering if yourzshrc
gets sourced a second time, on top of the regular call byzsh
).– pseyfert
Jan 31 at 11:32
Its a pretty excessive amount of output that I can't make much sense of. Should I throw it in a pastebin or something?
– Grant
Jan 31 at 11:42
the "big indicator" is probably a red herring. by calling
source $HOME/.zshrc
from within.zshrc
you just created an infinite loop of a script calling itself.– pseyfert
Jan 31 at 11:47
hm, i was afraid the output could be too big to handle. and someone other than you might even have more problem as they're unfamiliar with what you have in your scripts (which you could recognize). Can you try going towards a minimum working example? i.e. remove things from your .zshrc (make a backup before, or even put it in version control to go through your steps) until the error disappears? I suspect once you exclude oh-my-zsh.sh the -v output might even become readable, and we'll know if the problem is on your side / on the oh-my-zsh side / a combination of both.
– pseyfert
Jan 31 at 11:49
1
"every command possible followed by my usual .zshrc file" okay, so what is the last thing before your zshrc? since apparently the beginning of your zshrc is command-not-found'ed something that happens before tries to run it (or expects a command). looking at this post, could there be something buggy in your .zprofile or .zshenv (or worse, in /etc/zsh*)
– pseyfert
Jan 31 at 16:47