Skip to content
Browse files

zsh editing: ignore comments in /etc/inputrc

  • Loading branch information...
1 parent c5ae812 commit 0129e119ac3dec67800c17f27c7e4d3094dfefbe @sunaku committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 .zsh/config/editing.zsh
2 .zsh/config/editing.zsh
@@ -1,5 +1,5 @@
# bind special keys according to readline configuration
-eval "$(sed -n 's/^/bindkey /; s/: / /p' /etc/inputrc)"
+eval "$(sed -n 's/^\( *[^#][^:]*\):/bindkey \1/p' /etc/inputrc)"
# do not erase entire line when Control-U is pressed
bindkey '^U' backward-kill-line

0 comments on commit 0129e11

Please sign in to comment.
Something went wrong with that request. Please try again.