"zsh: #: command not found..." error on startup #11862
-
Every time I open a terminal, or create a new pane in tmux it shows
Then I can use the terminal normally, but it's annoying viewing that error every time. How can I get rid of it? I reseted .zshrc. Inspected .oh-my-zsh.sh command. Checked the $ZSH path. Reseted i3 setup and even commented parts of it and checked if the dependencies it run where installed. Reseted .bashrc. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Which is the full line? For example, this would be an example |
Beta Was this translation helpful? Give feedback.
-
@carlosala That's the fun part, there's no more, it literally just says that: |
Beta Was this translation helpful? Give feedback.
-
I fixed it! <feff># If you come from bash you might have to change your $PATH.
+/home/arielcorte/.zshrc:1> '<feff>#' If you come from bash you might have to change your /home/arielcorte/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin.
+command_not_found_handle:1> local runcnf=1
+command_not_found_handle:2> local retval=127
+command_not_found_handle:5> [[ 569Xivx == *i* ]]
+command_not_found_handle:8> [[ ! -S /run/dbus/system_bus_socket ]]
+command_not_found_handle:11> [[ ! -x /usr/libexec/packagekitd ]]
+command_not_found_handle:14> [[ -n '' ]]
+command_not_found_handle:17> [[ ! -x /usr/libexec/pk-command-not-found ]]
+command_not_found_handle:20> [ 1 -eq 1 ']'
+command_not_found_handle:21> /usr/libexec/pk-command-not-found '<feff>#' If you come from bash you might have to change your /home/arielcorte/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin.
zsh: <feff>#: command not found...
+command_not_found_handle:22> retval=127
+command_not_found_handle:28> return 127
# export PATH=$HOME/bin:/usr/local/bin:$PATH Note: I have manually added the <feff> in my comment, but in my file there was the actual character. then I went to both my .bashrc and .zshrc files and with vim I used Thanks @carlosala for the log snippet and help and @mcornella for the hint for looking for |
Beta Was this translation helpful? Give feedback.
I fixed it!
In my zsh logs i found the next lines: