A redditor explains how to make readline and bash more user friendly
reddit.com
reddit.com
# Search for partial matches in bash history
# so $ <C-p> goes to the previous command but
# $ s<C-p> searches through history entries that start with s
"\C-p":history-search-backward
"\C-n":history-search-forward
# add a trailing '/' when tab completing a symlink
set mark-symlinked-directories onI'm still not sure of a decent solution to it (apart from using C-s to search history forward instead)
Ctrl + a, Ctrl + k (move to beginning, delete to end), Enter
Going to a new line, resets that index.I'm sure there is a better way, but its muscle memory for me.
"\e[A": history-search-backward
"\e[B": history-search-forward
(This was really the only thing I disliked about bash compared to csh, so imagine my delight when I found out this option existed in readline.)Whaddya wanna bet the same argument is being used elsewhere, except with csh/bash or sh/bash as the simple-shell/advanced-shell duo?
(Before anyone gets confused: tcsh is the advanced-shell BSDs come with. csh is the simple one.)
From what I can gather it only alters the look (https://github.com/robbyrussell/oh-my-zsh/blob/master/themes...)