[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

zsh

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 83
Thread images: 12

File: 1484310340116.jpg (16KB, 805x503px) Image search: [Google]
1484310340116.jpg
16KB, 805x503px
Is this the best shell in the world for daily use? I hear that's what hackers use...
>>
>>59469062
As a hacker, i use fish
>>
I use konsole.
>>
>>59469062
zsh can make it loonger!
>>
>>59469078
>fish
not POSIX :\
>>
>>59469143
My dick is more than yours.
>>
>>59469273
More what?
>>
>>59469096
>I use konsole.
you're retarded in more ways than one.
>>
>>59469296
POSIX you dump fuck
>>
>>59469296
More POSIX :/
>>
i used to use ksh, but since rc released i used rc.
>>
>>59469312
Yeah. My dick is more POSIX than yours.
>>
one of my fav things about zsh is autocrrection and suggestions.

$ vm /home/sd/file1 //home/sd/file2
zsh: correct vm to mv [nyae]?


$ wget -<hit tab>

-- option --
--accept -A -- specify accepted extensions
--adjust-extension -E -- save all HTML/CSS documents with proper extensions
--append-output -a -- specify output logfile to append to
--ask-password -- [prompt for passwords]
--auth-no-challenge -- send basic HTTP authentication without first waiting for server's challenge
--background -b -- run in background
--backup-converted -K -- backup files before conversion
--backups -- max backups
....


tips & other tricks your shell cannot do:
https://www.slideshare.net/jaguardesignstudio/why-zsh-is-cooler-than-your-shell-16194692
>>
>>59469305
don't bully
>>
fish masterrace
>>
Anything other than bash is trash,
>>
>>59469485
Bash is actual shit.
>>
File: 1486488522903.jpg (1MB, 1062x1544px) Image search: [Google]
1486488522903.jpg
1MB, 1062x1544px
>>59469450
huh?
>>
>>59469485
bash is made for scripting. it's not great for user interaction. bash devs don't give a fuck about UX. to them, MUH COMPATIBILITY trumps everything.

tl;dr: don't use bash as your interactive shell. use it for scripts only.
>>
File: maxresdefault.jpg (38KB, 1280x720px) Image search: [Google]
maxresdefault.jpg
38KB, 1280x720px
>>59469515
Please. Could you elaborate on that comment?
>>
Bash is a nigger shell, you're a cuck if you use it. The fact there is no pro white shell shows how cucked free software is.
>>
>>59469062
True hackers use Scsh.
>>
File: 0088.jpg (74KB, 640x640px) Image search: [Google]
0088.jpg
74KB, 640x640px
>>59469628
Oh, so it's a shit because you don't like niggers. Wow. That's a cool story bro.
>>
>>59469753
Kill yourself race traitor
>>
File: 1485055052654.png (238KB, 665x720px) Image search: [Google]
1485055052654.png
238KB, 665x720px
>>59469539
it's all the same command line shit though
>>
File: 0045.jpg (180KB, 1451x816px) Image search: [Google]
0045.jpg
180KB, 1451x816px
>>59469765
>Race traitor
>>
>>59469784
You're using nigger software race traitor. Your kind deserve the rope.
>>
>>59469779
but it isn't.

https://www.slideshare.net/jaguardesignstudio/why-zsh-is-cooler-than-your-shell-16194692
>>
File: 0001.gif (1MB, 232x158px) Image search: [Google]
0001.gif
1MB, 232x158px
>>59469798
.t increasingly nervous whitey.
>>
>>59469829
>Degenerate can't even post memes properly
I can't wait till leftist cucks like you are killed.
>>
>>59469539
>bash is made for scripting
it's shit at that also
>>
>>59469852
I'm not leftist you degenerate retard. I'm just fucking with you you insufferable twat!
>>
>webdevs need meme shells because it's hard to type "cd shit.js/arsehole" without making a typo
end yourselves
>>
>>59469873
Sure you're not cuck, now get off my website and go jump into an oven.
>>
File: 0002.jpg (2KB, 124x103px) Image search: [Google]
0002.jpg
2KB, 124x103px
>>59470006
I'm not a cuck. YOU are probably not a cuck either. What you are however, is an insufferable little prick with daddy issues.
>>
>>59469829
>>59470044
>avatarfagging a real person
>a schizophrenic person no less
>>
>>59470136
I know. He's a retard. I hope you can work with that. Perhaps you can get the CIA on his ass.
>>
>>59469096
that has nothing to do with anything
>>
Pretty much everything I do in z shell I could probably do in bash.

Honestly the only major thing I noticed that you can't do in bash that you can do in zsh is nested expansions.
>>
>>59469562
No. He can't.
>>
>>59469062
zsh and ohmyzsh + plugins is god mode
autocompletion is so good I can't go back to bash
>>
>>59470456
prezto is also bretty gud. much faster too
>>
>>59470456
This. Also the git plugin is very nice and having return codes on the prompt is useful.
Recommend me more plugins, anon.
>>
>>59470585
Just learb how to change your PS1 instead of switching shell, retard.
>>
>>59470585
I like sudo, I make sure to enable that every time I install ohmyzsh.

If you ran a command that required elevated privileges and you got denied, you can just hit the Escape key twice and it redos the last command and then starts it off with "sudo".
>>
>>59470694
>2017
>not using zsh
Find an excuse
>>
#!/bin/bash
>>
>>59469062
I have zsh on one of my machines it's okay.
>>
>>59470456
>autocompletion
bash : just works
zsh: pain in the ass to set up, then constantly getting in you're way.
Fell for the meme and dropped that shit in 10 minutes I'll never get back.
>>
>>59470782
>bash : just works
>zsh: pain in the ass to set up, then constantly getting in you're way.
Who hurt you this bad that you have to make up lies?
>>
>>59470782
>then constantly getting in you're way.
retard detected.
>>
>>59470717
I love this one
>>
File: pimp.jpg (27KB, 400x265px) Image search: [Google]
pimp.jpg
27KB, 400x265px
>>59469062
Sup mah niggaz?! Where dem cool zshit pluggs @?
>>
>>59469062

zsh is the best shell. You get more functionality with a smaller rc file than bash. That's about all the reason you need. Avoid oh-my-zsh and other stupid shit like that, just set it up yourself, it's not hard.

> tcsh
> fish
> scsh
> xonsh

The problem with these shells is that they're incompatible with /bin/sh (despite what the xonsh documentation might imply). This actually turns out to be a bigger problem than you might think, because many programs shell out for various functionality, and they will break if they encounter something that's not a bourne shell.
>>
File: 1483814699681.png (48KB, 1054x1259px) Image search: [Google]
1483814699681.png
48KB, 1054x1259px
>>59471412
>>The problem with these shells is that they're incompatible with /bin/sh (despite what the xonsh documentation might imply). This actually turns out to be a bigger problem than you might think, because many programs shell out for various functionality, and they will break if they encounter something that's not a bourne shell.
excellent point about programs that shell out.

here's my setopts for zsh.
>>
ZSH is pretty nice, but I think other shells can be configured to do a lot of the same stuff.
>>
>>59469062
As an intermidiate hacker, i like zsh.
>>
File: 1459318030757.gif (11KB, 200x200px) Image search: [Google]
1459318030757.gif
11KB, 200x200px
>use zsh
>"not fast enough"
>mfw installed Oh-my-zsh
>>
>>59469539
>bash is made for scripting
No, bash is humongous. For scripting, use ksh, ash, or dash.
>>
>>59469562
Look below you.
>>
>>59472996
So bash isn't good for anything?
>>
>>59473043
It depends on your needs. GNU/Linux users think it's a great interactive shell. I use pdksh or ksh93 most of the time, and occasionally tcsh.
>>
>>59472996
>Use a shell with less builtins for something that isn't interactive

I seriously hope you guys don't do this.

Builtins are how you turn some shitty script that takes 30 seconds to process 5MiB of text to a script that can do it almost instantly.
>>
ok, so I'll admit bash is better than windows batch.

but bash is still dogshit. holy shit just trying to get things interpreted as numbers vs strings consistently is hell.

why are there no good operating system level scripting languages?

using something like python isn't a suitable replacement because it's much easier to do file operations in system language.
>>
>>59473114
Bash allows you to define strict types to variables.

Usually you do this for math expression for loops so the conditionals aren't constantly transformed to numeric values from strings.
>>
>>59469515
I use zsh on all my devices and I completely disagree with this massive faggot.
Bash is perfectly fine and usable for normal use.
>>
>>59469062
Why not just use bash?
>>
>>59473184
It's kind of like why people use shit like urxvt at this point. It jus werks and they already have it set up to work for them.

Plus zsh does have some positives over bash still.
>>
>>59473184
better tab completion. better color schemes.
IIRC it saves directory history so you can do
cd -2 to go to dir you were in 2 dirs ago
>>
>>59473224
To be fair, there is pushd and popd
>>
>>59473184
>bash
Linux faggots love it.
Real professionals tend to use tcsh.
>>
File: 1484168442829.jpg (10KB, 320x320px) Image search: [Google]
1484168442829.jpg
10KB, 320x320px
>>59473257
>Real professionals
As opposed to "Unreal professionals"?
>>
>>59469062
/bin/bash
>>
>>59473257
Literally who?

Only time I see c shell like crap being used is for legacy mainframe pieces of shit running God awful nonfree Unix abortions

Thankfully more places are killing these shitty infrastructures and replacing them with "midrange linux" clouds
>>
>>59473280
/usr/bin/env bash
>>
>>59473097
>implying ksh and dash don't have tons of internal tests and arithmetic capabilities
ksh is incredibly featureful while not being as huge as bash.
I agree that calling external programs is a waste of time, but there is a niche for it: portable shell scripts.
>>
>>59473339
Given how fucking different GNU and BSD coreutils are and even differences in shells--their handling of lines and built-in features, I highly doubt portable shell scripts will be a thing ever.

At that point you probably should be using some proper standardized scripting language.
>>
>>59473305

ksh is in that realm too. I only see it in hulking ORCL ERP systems running some commercial Unix.
>>
>>59473428
pdksh is the default OpenBSD shell.
>>
rc is the best shell since it actually has a syntax that wasn't created by an autistic ALGOL user, so it actually fits right in with the unix environment
>>
>>59473523
Plan 9 doesn't install though.
>>
mksh master race
>>
blurry fish butt master race
Thread posts: 83
Thread images: 12


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.