5 ms·
A redditor explains how to make readline and bash more user friendly
- StavrosK 15y agoOr just use oh-my-zsh with the fish theme and get all of this (and more) straight away.
- jkjeldgaard 15y agoI agree with the oh-my-zsh, but why specifically the fish theme? From what I can gather it only alters the look (https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/fishy.zsh-theme https://github.com/robbyrussell/oh-my-zsh/blob/master/themes...)
- StavrosK 15y agoHmm, does it? I installed it right away and it's pretty much exactly like fish (history traversal with arrows, case-insensitive matching, etc). I might be mistaken and it might just be omz.
- fs111 15y agoThat might be true, but where ever you go, there is always bash installed. zsh not so much. Knowing the tools, that you will always find, is a pretty useful skill.
- X-Istence 15y agoThat is not true at all... if you install FreeBSD out of the box there is no bash installed. Most of my FreeBSD servers don't have bash installed at all because I don't find it necessary at all, tcsh does everything I want it to do.
- derleth 15y ago> That might be true, but where ever you go, there is always bash installed. zsh not so much. 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.)
- graywh 15y agoIf you're going to use a system enough to copy your readline & bash config, it would be just as easy to copy your zsh config and install it in the rare case it's not available.
- idonthack 15y agoI don't have root on every box I log in to.
- gnubardt 15y agoThose are great, here are a couple more i find very useful: # 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 on
- aaronblohowiak 15y ago<C-r> searches through entire history backward, with partial match support
- shabble 15y agoIt seems to have an annoying habit of preserving the index of the last partial match, even if you cancel it. So when you realise you were searching for the wrong substring, cancel and start over, it won't find it because you've now gone past it in the history list. I'm still not sure of a decent solution to it (apart from using C-s to search history forward instead)
- daemianmack 15y agoI hit the Enter key.
- pacemkr 15y agoIt is annoying. Generally happens to me when I "miss" the thing I was searching for and go too far. This is what I do: 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.
- daemianmack 15y agoctrl+c should cancel the search, saving you the line-editing workaround.
- 15y ago
- __rkaup__ 15y agoA lot of cross-posts from Reddit lately. Could this mean Reddit is improving?
- fs111 15y agoNo, it's just knowing the right subreddits. I found this one via http://redditdirectory.com/856/Programming http://redditdirectory.com/856/Programming
- rmc 15y agoDo we need to mention that it's a redditor? This is a useful resource, so it should be submitted to HN, but the title needs editing.
- ubernostrum 15y agoYes, we do need to mention it, since a lot of HN users have deep, deep biases against the idea that anything good happens on reddit :)
- skeletonjelly 15y agoIt's a funny label to apply. Arguably, all that it really takes to become a redditor is a username, password, and a captcha.
- skeletonjelly 15y agoI'm being downvoted. Am I wrong? Please let me know rather than punishing me for reasons unknown.
- nhoss2 15y agoI think you are missing the point in your shallow analysis
- skeletonjelly 15y agoMaybe. Was just pointing that fact out though. I've been on reddit for 4 years now. After the community has grown it just seems a bit naive to refer to it as a little exclusive club of intellectualism, or from an outsider's perspective, a meme graveyard. Just an observation.
- Jgrubb 15y agoI assumed you were being funny, since HN doesn't even have a captcha in their signup form. Have an upvote.
- drivebyacct2 15y agoWow, I was going to ask for a link to the reddit article before realizing that the subreddit was simply heavily themed. I had no idea these settings were flexible and I'm very thankful. Thanks for the cross post and for introducing me to another nice subreddit.