-
Notifications
You must be signed in to change notification settings - Fork 110
Troubleshooting
This page is meant to describe the most common problems with oh-my-zsh and what you can do to diagnose them:
Example:
bindkey '^L' clear-screen
Two main things could go wrong:
-
The key sequence (
^L
in the example) does not match the key sequence being sent to the terminal:You can see the exact sequence a keyboard shortcut sents by pressing
CTRL
+V
and then the keyboard shortcut.
For example:CTRL
+V
,CTRL
+L
will output^L
(^
represents the Control key). -
The command executed (
clear-screen
in the example) has an error. In that case, post both the key binding and the definition of the command (if exists) like so:-
key binding:
bindkey '^[[1;6D'
will print"^[[1;6D" insert-cycledleft
-
command definition:
which insert-cycledleft
will printinsert-cycledleft () { ... }
Notice that sometimes the command is a builtin zle widget and so the
which
command won't work. If that's the case, just post the key binding and we'll figure it out.
-
Many completion problems, including the infamous command not found: compdef
, can be solved by resetting the completion system.
-
First, try to remove your completion cache with
rm ~/.zcompdump*
, close and reopen your shells. -
If you still have problems, try fully resetting the completion system, as explained by @dragon788.
...to be filled...