[KyOSS Discuss] zsh: best of bash, csh, and tcsh

alan blount alan at zeroasterisk.com
Fri Jun 13 09:45:15 EDT 2014


https://github.com/zeroasterisk/home/blame/master/.zpreztorc#L86

Thanks,
-alan


On Fri, Jun 13, 2014 at 7:41 AM, Jeff Squyres <jeff at squyres.com> wrote:

> ​@Alan --
>
> What's the relevant code for the 2-line prompt you're using?​  I think I
> might try it out...
>
>
> On Thu, Jun 12, 2014 at 11:12 PM, alan blount <alan at zeroasterisk.com>
> wrote:
>
>> I'm a big fan of `zsh` and `zprezto` (I used to use `oh-my-zsh` before).
>>
>> ref card: http://www.bash2zsh.com/zsh_refcard/refcard.pdf
>>
>> @aaron - I actually love zsh completions, personally, but they are easy
>> to turn off or re-configure as you like...  can you give them a chance?
>>  what is it you don't like about them?  they are crazy powerful and allow
>> you to be lazier and more mistake prone and zsh tries to fix things up...
>> it does a pretty good job too, in my opinion.  don't like the big menu?
>> arrows navigate, or more [tabs] or to get rid of it, just [esc]...
>>
>> if you're using zprezto, checkout:
>> https://github.com/sorin-ionescu/prezto/tree/master/modules/utility
>> and: https://github.com/sorin-ionescu/prezto/search?q=complete&type=Code
>>
>> @jeff - you should submit to:
>> https://github.com/zsh-users/zsh-completions
>>
>> Aside:for a long time I used the abbreviated path prompt (with the
>> ">>>"), but I've switched to a 2-line and space prompt... I always hated
>> them at first, but I've come to like it (for now, we will see if it lasts
>> longer than the 4 months
>> <https://github.com/zeroasterisk/home/blame/master/.zpreztorc#L86> it's
>> been).
>> [image: Inline image 1]
>>
>> Thanks,
>> -alan
>>
>>
>> On Thu, Jun 12, 2014 at 6:05 PM, Mike O'Connor <stew at vireo.org> wrote:
>>
>>> Add these two options:
>>>
>>> setopt noautomenu
>>> setopt nomenucomplete
>>>
>>> On Jun 12, 2014, at 7:19 AM, Aaron VerDow <aaron at verdow.com> wrote:
>>>
>>> > I really tried to love zsh but I absolutely hate the tab key behavior
>>> of cycling through the available options.  I loved some of the shell
>>> features but actually using it was so frustrating that I finally gave up.
>>>  If someone knows how to set it to only tab complete as far as it can go
>>> without guessing and then do nothing else I would switch back to zsh.   I
>>> looked around about a year ago when I first was messing with zsh but I
>>> could never get the tab key to behave like it did in bash.
>>> >
>>> >
>>> > On Thu, Jun 12, 2014 at 9:48 AM, Deven Phillips <
>>> deven.phillips at gmail.com> wrote:
>>> > Nice! I have a bash prompt script which gives me the nice git
>>> integration as well... It's one of my favorite recent discoveries. I wish I
>>> could have made it to the meeting last night because I wanted to show off
>>> some of the cool stuff I have been playing with recently (Vert.x, MoreUnit,
>>> etc..), but I'm sure I will make it there again soon!
>>> >
>>> > Cheers,
>>> >
>>> > Deven
>>> >
>>> >
>>> > On Thu, Jun 12, 2014 at 8:13 AM, Jeff Squyres <jeff at squyres.com>
>>> wrote:
>>> > Last night, I showed about 5 minutes of zsh.  zsh is basically the
>>> best things you like about bash, csh, and tcsh all rolled into one.  zsh is
>>> part of most major distros these days -- it's even part of OS X:
>>> >
>>> >   http://www.zsh.org/
>>> >
>>> > I also use "zprezto" -- a set of macros and plugins for zsh that
>>> instantly makes zsh 38% more awesome:
>>> >
>>> >    https://github.com/sorin-ionescu/prezto
>>> >
>>> > This gives me stuff like the git branch and icons that you saw last
>>> night when I cd into a directory that is a git clone.  For example:
>>> >
>>> > -----
>>> > [8:10] JSQUYRES-M-504A:~ ❯❯❯ cd git/cisco/ompi-usnic
>>> > [8:11] JSQUYRES-M-504A:~/g/c/ompi-usnic git:usnic-v1.6 ❯❯❯ git
>>> checkout usnic-v1.8
>>> > Checking out files: 100% (7456/7456), done.
>>> > Branch usnic-v1.8 set up to track remote branch usnic-v1.8 from origin.
>>> > Switched to a new branch 'usnic-v1.8'
>>> > [8:11] JSQUYRES-M-504A:~/g/c/ompi-usnic git:usnic-v1.8 ❯❯❯
>>> > -----
>>> >
>>> > ​Note that the prompt changed automatically a) when I cd'ed into the
>>> tree, and b) when I checked out a different branch.​
>>> >
>>> > I also love the abbreviated directory that it puts in my prompt -- it
>>> shortens each subdir up to the current directory to just 1 letter.  So it
>>> still gives you a visual cue of how far away from ~ I am, but it doesn't
>>> necessarily represent the full path length.
>>> >
>>> > ​zsh+zprezto is yummy.
>>> >
>>> > --
>>> > {+} Jeff Squyres
>>> >
>>> > _______________________________________________
>>> > KyOSS-Discuss mailing list
>>> > KyOSS-Discuss at kyoss.org
>>> > Subscribe by sending email to kyoss-discuss-subscribe at kyoss.org
>>> > Unsubscribe by sending email (from the address you wish to
>>> unsubscribe) to kyoss-discuss-unsubscribe at kyoss.org
>>> > Difficulty unsubscribing? Check your email headers for originally-to
>>> address in case you are forwarding your mail.
>>> > More options at
>>> http://kyoss.org/cgi-bin/mailman/listinfo/kyoss-discuss
>>> >
>>> >
>>> > _______________________________________________
>>> > KyOSS-Discuss mailing list
>>> > KyOSS-Discuss at kyoss.org
>>> > Subscribe by sending email to kyoss-discuss-subscribe at kyoss.org
>>> > Unsubscribe by sending email (from the address you wish to
>>> unsubscribe) to kyoss-discuss-unsubscribe at kyoss.org
>>> > Difficulty unsubscribing? Check your email headers for originally-to
>>> address in case you are forwarding your mail.
>>> > More options at
>>> http://kyoss.org/cgi-bin/mailman/listinfo/kyoss-discuss
>>> >
>>> > _______________________________________________
>>> > KyOSS-Discuss mailing list
>>> > KyOSS-Discuss at kyoss.org
>>> > Subscribe by sending email to kyoss-discuss-subscribe at kyoss.org
>>> > Unsubscribe by sending email (from the address you wish to
>>> unsubscribe) to kyoss-discuss-unsubscribe at kyoss.org
>>> > Difficulty unsubscribing? Check your email headers for originally-to
>>> address in case you are forwarding your mail.
>>> > More options at
>>> http://kyoss.org/cgi-bin/mailman/listinfo/kyoss-discuss
>>>
>>> _______________________________________________
>>> KyOSS-Discuss mailing list
>>> KyOSS-Discuss at kyoss.org
>>> Subscribe by sending email to kyoss-discuss-subscribe at kyoss.org
>>> Unsubscribe by sending email (from the address you wish to unsubscribe)
>>> to kyoss-discuss-unsubscribe at kyoss.org
>>> Difficulty unsubscribing? Check your email headers for originally-to
>>> address in case you are forwarding your mail.
>>> More options at http://kyoss.org/cgi-bin/mailman/listinfo/kyoss-discuss
>>
>>
>>
>> _______________________________________________
>> KyOSS-Discuss mailing list
>> KyOSS-Discuss at kyoss.org
>> Subscribe by sending email to kyoss-discuss-subscribe at kyoss.org
>> Unsubscribe by sending email (from the address you wish to unsubscribe)
>> to kyoss-discuss-unsubscribe at kyoss.org
>> Difficulty unsubscribing? Check your email headers for originally-to
>> address in case you are forwarding your mail.
>> More options at http://kyoss.org/cgi-bin/mailman/listinfo/kyoss-discuss
>>
>
>
>
> --
> {+} Jeff Squyres
>
> _______________________________________________
> KyOSS-Discuss mailing list
> KyOSS-Discuss at kyoss.org
> Subscribe by sending email to kyoss-discuss-subscribe at kyoss.org
> Unsubscribe by sending email (from the address you wish to unsubscribe) to
> kyoss-discuss-unsubscribe at kyoss.org
> Difficulty unsubscribing? Check your email headers for originally-to
> address in case you are forwarding your mail.
> More options at http://kyoss.org/cgi-bin/mailman/listinfo/kyoss-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kyoss.org/pipermail/kyoss-discuss/attachments/20140613/5fce196e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2014-06-12_2311.png
Type: image/png
Size: 29137 bytes
Desc: not available
URL: <http://kyoss.org/pipermail/kyoss-discuss/attachments/20140613/5fce196e/attachment-0001.png>


More information about the KyOSS-Discuss mailing list