Quantcast
[ 3 / biz / cgl / ck / diy / fa / g / ic / jp / lit / sci / tg / vr / vt ] [ index / top / reports / report a bug ] [ 4plebs / archived.moe / rbt ]

Due to resource constraints, /g/ and /tg/ will no longer be archived or available. Other archivers continue to archive these boards.Become a Patron!

/g/ - Technology


View post   

[ Toggle deleted replies ]
File: 17 KB, 346x146, file.png [View same] [iqdb] [saucenao] [google] [report]
61024362 No.61024362 [Reply] [Original] [archived.moe] [rbt]

zsh vs bash vs other shells

convince me to use zsh over bash

>> No.61024373

>>61024362
Bidirectional globbing.

>> No.61024375

>>61024362
No

>> No.61024380

>>61024373
Works in bash

>> No.61024411
File: 26 KB, 820x438, file.png [View same] [iqdb] [saucenao] [google] [report]
61024411

>>61024373

>> No.61024440

>>61024362
ohmyzsh is good

>> No.61024452

>>61024362
But why you want to be convinced?

>> No.61024462

>>61024452
Because I see a lot of people advocating it and using it here. Mostly in screenfetch breads though

>> No.61024479

>>61024462
You can't even do "!!" to run the previous command on zsh, I wouldn't bother

>> No.61024485

>>61024362
zsh is bloated, stay on bash

>> No.61024494

>>61024380
>>61024411
That's not what I meant.

Try writing part of your filename from the back and pressing enter. It doesn't autocomplete leftwards, only rightwards.

>> No.61024495

>>61024479
Works on my machine™

>> No.61024505

>>61024440
its crap, really fucking annoying how it constantly updates and changes how it works. same goes for zpresto. learn how to configure your shell yourself. man bash, man zsh

>> No.61024542

rc for bigger scripts
sh for smaller and portable scripts
mksh/oksh as interactive shell

>> No.61024578

>>61024362
learn how to use bash or ksh first, if it doesn't do what you need then maybe look at zsh. Everytime you add more stuff to your unix that you don't understand, you end up with more bloat that slows your system down and gets in your way. Before you know it your waiting for tab completion that tries querying your network and all sorts of ungodly things you probably don't need. Take it from me, I've been down all these paths and now perhaps regret all that time spent ricing and playing with stupid command prompt features that I don't need. But you're probably young and will ignore me anyway so I'm not sure why I'm bothering perhaps it's senility.

Here is a command prompt setting for you. Use it wisely

export PS1='\$ '

>> No.61024618

>>61024578
>Before you know it your waiting for tab completion that tries querying your network
In what scenario would that ever happen?

>> No.61024671

>>61024479
It's truly inspirational that you're able to use a computer despite being mentally retarded.

>> No.61024702

xonsh

>> No.61024986
File: 54 KB, 620x330, 1468174170863.jpg [View same] [iqdb] [saucenao] [google] [report]
61024986

>>61024362
I have zsh with zlug and it is pretty nice. I used oh-my-zsh and antigen before that and those are shit compared to zplug. Here's the plugins I use:

zplug "jamesob/desk", as:command, use:"desk"
zplug "raylee/tldr", as:command, use:"tldr"
zplug "rimraf/k"
zplug "djui/alias-tips"
zplug "b4b4r07/enhancd", use:init.sh
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zsh-history-substring-search

>> No.61025061

>>61024362
tab auto completion, this single feature is enough to make anyone want to go beyond default bash

>> No.61025169

>>61024362
The powershell is still the king. It's fully cross platform and really works!
All those pseudo bash shells should die!

>> No.61027348

>>61024542
For bigger scripts you might as well use Lua, Python or Go

>> No.61027400

>>61024362
If you don't need anything else then keep using bash, if you want to get some more features go for zsh ffs just Google the differences

>> No.61027405
File: 263 KB, 480x479, 1479593516742.gif [View same] [iqdb] [saucenao] [google] [report]
61027405

i used ZSH with ohmyzsh. bloat.
now i use fish. you should give it a shot.
https://fishshell.com/

>> No.61027446
File: 12 KB, 391x256, pshh.png [View same] [iqdb] [saucenao] [google] [report]
61027446

>>61024362
>Not using Powershell
Then again, you use Linux so you basically know nothing about computers.

>> No.61027563

>>61027405
fish isn't POSIX compliant tho

>>61027446
(You)

>> No.61027821

zsh+ohmyzsh is easier to rice

>> No.61028055
File: 33 KB, 550x550, Why the fuck is this?.jpg [View same] [iqdb] [saucenao] [google] [report]
61028055

>>61024578
> excessive bloat on your system is bad
> so use a prompt so bare-bones it's useless
There are more than two possibilities, you know.

>> No.61028897
File: 2.98 MB, 1474x1600, 1497821486800.jpg [View same] [iqdb] [saucenao] [google] [report]
61028897

>>61027446
IN THE NAME OF STALLMAN I SMITE YOU DOWN!!!!

>> No.61029581

>>61027446
>being this in denial about Windows being a botnet
Powershell is nothing like bash. It's bascially all of bash's best elements removed and added shitty ones.

>> No.61029642

>>61024440
No it fucking isn't. It's bloated piece of shit. Use ZIM.

>> No.61029672
File: 175 KB, 1366x768, 2017-06-22-200010_1366x768_scrot.png [View same] [iqdb] [saucenao] [google] [report]
61029672

>>61024362

>> No.61029675
File: 186 KB, 960x1062, wew.png [View same] [iqdb] [saucenao] [google] [report]
61029675

>>61024578
>export PS1='\$ '
lmao no

>> No.61029677

>>61029642
How do we know if we're in control? That we're not just making the best of what comes at us, and that's it? Trying to constantly pick between two shitty options? Like your two paintings in the waiting room. Or... Arch and Gentoo? Bash or Zsh? 4chan or reddit? Hmm. It's all part of the same blur, right? Just out of focus enough. It's the illusion of choice. Half of us can't even pick our own... our cable, gas, electric. The water we drink, our health insurance. Even if we did, would it matter? You know, if our only option is C++ or Java, what the fuck is the difference? In fact, aren't they... aren't they the same? No, man... our choices are prepaid for us, long time ago.

>> No.61029714

>>61029677
You are describing textbook depression.

>> No.61029754
File: 701 KB, 950x534, file.png [View same] [iqdb] [saucenao] [google] [report]
61029754

>>61029714
Nah, man.

>> No.61029903

>>61027405
Use prezto

>> No.61029905
File: 132 KB, 700x544, Cima_da_Conegliano,_God_the_Father.jpg [View same] [iqdb] [saucenao] [google] [report]
61029905

>>61029714
Nah, man.

>> No.61031328
File: 57 KB, 500x500, 1497987768629.jpg [View same] [iqdb] [saucenao] [google] [report]
61031328

How do I create a bash script that uses "rsync" command for backups and restores?

>>
Name (leave empty)
Comment (leave empty)
Name
E-mail
Subject
Comment
Password [?]Password used for file deletion.
Captcha
Action