Re:Ask HN: What's your favorite shell?
by J_Darnley on Sunday July 22, 2012 @05:32AM
(#4276891)
cmd.exe
Yes really! I prefer its for loops over those of bash: filenames with spaces are no problem . I prefer they way it assembles environment variables: it is easy to put quotes and spaces in them. Tab completion is better: again filenames with spaces plus looping through matches (which I have just discovered bash can do too).
A set of unix/GNU tools does improve it further. I'm just sorry that it costs so much money.
Re:Ask HN: What's your favorite shell?
by jfaucett on Sunday July 22, 2012 @06:36AM
(#4277004)
is this a joke? I think it is. But anyway, cmd.exe is, to put it mildly, crap compared to any other shell. When were filenames with spaces ever a good idea?
Re:Ask HN: What's your favorite shell?
by antidoh on Saturday July 21, 2012 @11:40PM
(#4276379)
bash
Nothing special in my .bashrc, just whatever came with lubuntu. Here are the only interesting tweaks. The prompt is two lines, first line = $? from the previous command, then some normal stuff; second line is whatever you type for a command, allows triple clicking and just get the command with no prompt cruft.
...
if [ "$color_prompt" = yes ]; then
PS1="\[\033[01;32m\]\$?] ${debian_chroot:+($debian_chroot)}\[\033[01;34m\]\u\[\033[01;32m\]@\h\[\033[00m\] \[\033[01;34m\]\w\[\033[00m\] \$\n"
else
PS1="\$?] ${debian_chroot:+($debian_chroot)}\u@\h \w \$\n"
fi
unset color_prompt force_color_prompt
...
export PAGER=~/bin/vimpager
My .inputrc, allows any readline enabled prog like pgsql to have command line editing and completion:
set editing-mode vi
set completion-ignore-case on
Control-j: menu-complete
Control-k: menu-complete-backward
set completion-map-case on
In general, don't use set -o vi on the cmd line or in .bashrc, use .inputrc so that everyone who can play does play.
Re:Ask HN: What's your favorite shell?
by tsahyt on Sunday July 22, 2012 @06:13AM
(#4276956)
My favourite is actually bash. I've looked at zsh for a while and found nothing I needed that bash didn't already provide. My bashrc just features aliases to a couple of things I often do, and that's basically that.
Bash is actually suprisingly powerful. You might want to have a look at the Bash Reference manual over at gnu.org.
Re:Ask HN: What's your favorite shell?
by Zenst on Saturday July 21, 2012 @10:40PM
(#4276297)
ksh, fast. Though my argument used to be that it was more common across platforms that is not so. Still prefer it over bash and the like but that maybe more to do with me loving to type: set -o vi. I tend not to do startup configuration/customisations much as it's easier moving between different computers/enviroments etc. So many times found myself doing some funky changes and alias's and scripts and then feel a little lost on some virgin system elesewere. I also think ksh is faster than bash though thesedays moot. That all said I'm starting to think about writing my own shell, only way to customise. Probably start by hacking around one of the current ones and then play around with few others to get a nice feel to the various approach's and what I like and don't like better into something code quatifiable.
ksh - I feel I may be amongst a small but proud crowd.
Re:Ask HN: What's your favorite shell?
by rileyt on Saturday July 21, 2012 @11:17PM
(#4276342)
zsh with oh-my-zsh. It has all the features I need, easy to install and update and an active community. Check out the github repo https://github.com/sorin-ionescu/oh-my-zsh
Re:Ask HN: What's your favorite shell?
by munimkazia on Monday July 23, 2012 @12:55PM
(#4281898)
I've used bash all my life, but I am hooked on to fish's fish shell right now (http://ridiculousfish.com/shell/). The command prediction and auto-complete is amazing.
Yes really! I prefer its for loops over those of bash: filenames with spaces are no problem . I prefer they way it assembles environment variables: it is easy to put quotes and spaces in them. Tab completion is better: again filenames with spaces plus looping through matches (which I have just discovered bash can do too).
A set of unix/GNU tools does improve it further. I'm just sorry that it costs so much money.
try writing your own server with cmd.exe (bash can do it in 164 lines see: https://github.com/sayanriju/Tiny-Bash-Server/blob/master/us... ).
Nothing special in my .bashrc, just whatever came with lubuntu. Here are the only interesting tweaks. The prompt is two lines, first line = $? from the previous command, then some normal stuff; second line is whatever you type for a command, allows triple clicking and just get the command with no prompt cruft.
My .inputrc, allows any readline enabled prog like pgsql to have command line editing and completion: In general, don't use set -o vi on the cmd line or in .bashrc, use .inputrc so that everyone who can play does play.Bash is actually suprisingly powerful. You might want to have a look at the Bash Reference manual over at gnu.org.
ksh - I feel I may be amongst a small but proud crowd.