diff --git a/bin/sh/dot.shrc b/bin/sh/dot.shrc index 2bcedf44a40e02..a3317108944cbd 100644 --- a/bin/sh/dot.shrc +++ b/bin/sh/dot.shrc @@ -34,9 +34,11 @@ bind ^[[A ed-search-prev-history bind ^[[B ed-search-next-history -# # ctrl+arrow allow to jump from words to words +# # Ctrl+right arrow: go to the next word +# # Ctrl+left arrow: go to the previous word bind "\\e[1;5C" em-next-word bind "\\e[1;5D" ed-prev-word + alias history='fc -l' # Fix home/del for mobaxterm diff --git a/share/skel/dot.shrc b/share/skel/dot.shrc index 1fbda154c020c0..aa1a22eb0b0236 100644 --- a/share/skel/dot.shrc +++ b/share/skel/dot.shrc @@ -34,9 +34,11 @@ alias g='egrep -i' bind ^[[A ed-search-prev-history bind ^[[B ed-search-next-history -# # ctrl+arrow allow to jump from words to words +# # Ctrl+right arrow: go to the next word +# # Ctrl+left arrow: go to the previous word bind "\\e[1;5C" em-next-word bind "\\e[1;5D" ed-prev-word + alias history='fc -l' # Fix home/del for mobaxterm