[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]

If you're not using zsh, you're bad at computers.

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: 99
Thread images: 14

If you're not using zsh, you're bad at computers.
>>
i use zsh and i find zealotry like this pretty faggotronic
>>
> needing people to hold your dick while you piss

good one
>>
>>52679451
Give me one good reason to switch from bash to zsh and I'll do it right now. I even have it already installed.
>>
if you use oh-my-zsh, you're bad at computers.
>>
>>52679469
oh-my-zsh
>>52679475
luddite
>>
>>52679469
tab completion is great compared to bash. Type
cd /h/u/D/, press tab, and it will cycle through all paths that match that pattern, to /home/user/Documents/.

It also cycles through different possible tab completions in the command line, rather than just showing you a list of options and expecting you to type yourself.
>>
>>52679451
If you're not using Emacs as your shell, you're not a real programmer.
>>
>>52679469
Fuzzy autocomplete
>>
>>52679469
Backward compatible. You can use ZSH just like you use Bash, and take advantage of ZSH's features one at a time as needed.
>>
>>52679494
>oh-my-zsh
not interested in ricing
>>
>>52679509
If you're not using butterflies to program, you're not a real programmer
>inb4 M-x-butterfly
>>
>>52679469
I can give you a few:

- completion (cd completion, git completion, etc...) is quite good and built into zsh. bash can have completion as well, but my understanding is it's not as good.
- sort of a corollary: zsh has path expansion that's just great. I recorded a little example of that but my ffmpeg is broken so i'm re-making it... I'll post it in a bit.
- like others said, oh-my-zsh is a pretty great set of settings and aliases and shit. that alone is kind of worth it if you're just getting into shell stuff.
>>
File: expansion.webm (136KB, 1108x884px) Image search: [Google]
expansion.webm
136KB, 1108x884px
>>52679605
here's the path expansion thing in action. this is kind of just contrived, but i absolutely use it a lot. it's really nice.
>>
>>52679529
>>52679494
>>
>>52679526
>>Backward compatible. You can use ZSH just like you use Bash
nope it isnt
>>
>>52679724
>relying on bashisms
>>
>>52679724
Citation needed.
>>
>>52679649

That's pretty cool.
>>
>>52679768
man zsh
>>
>>52679504
I've been using zsh for a while, and not even I knew this.

Will definitely be using it.
>>
>>52679791
yep, if you find yourself going to a few directories a lot (like the torrents directory) it becomes incredibly handy.
>>
File: 1426278668441.jpg (157KB, 683x1024px) Image search: [Google]
1426278668441.jpg
157KB, 683x1024px
>>52679451
>shilling a bloat shell
>shilling a collection of macfag aliases

zsh is for gay macfags who can't configure their PS1 themselves
>>
Linux babby here. Been using Bash and the autocomplete stuff sounds cool for zsh, but are there any big fundamental differences? Would I have to "re-learn" anything to switch to zsh?
>>
File: 1430082128302.png (646KB, 1200x1200px) Image search: [Google]
1430082128302.png
646KB, 1200x1200px
>>52679858

unemployed loonix fag reporting for duty
>>
>>52679605
>like others said, oh-my-zsh is a pretty great set of settings and aliases
https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/lol/lol.plugin.zsh
>>
>>52679858
>power steering is car bloat
>indoor plumbing is house bloat
>fire is cave bloat
>>
File: zshrc.png (19KB, 1364x752px) Image search: [Google]
zshrc.png
19KB, 1364x752px
>>52679858
I configure my PS1 using Python.

fields = {
# ZSH expansions
'ret': '%?',
'user': '%n',
'host': '%M',
'pwd': '%3~',
'date': '%D{%a %F %T}',
'prompt': '%#',

# Bold
'b': '%B', # bold
'nb': '%b', # no bold

# Foreground colors
'fgk': '%F{black}',
'fgr': '%F{red}',
'fgg': '%F{green}',
'fgy': '%F{yellow}',
'fgb': '%F{blue}',
'fgm': '%F{magenta}',
'fgc': '%F{cyan}',
'fgw': '%F{white}',
'nfg': '%f', # no foreground color
}


def make(text):
return text.format_map(fields)

# Neutral style, used for unemphasized parts of the prompt.
fields['neu'] = make('{nb}{fgg}')
# Style reset.
fields['reset'] = make('{nb}{nfg}')

# Color fields for emphasis.
fields['user'] = make('{b}{fgm}{user}')
fields['host'] = make('{b}{fgy}{host}')
fields['pwd'] = make('{b}{fgr}{pwd}')
fields['date'] = make('{nb}{fgc}{date}')

# Construct prompt.
line1 = make('{neu}┌ {ret} {user}{neu}@{host}{neu}:{pwd} {date}')
line2 = make('{neu}└ {prompt}{reset} ')
prompt = '\n'.join((line1, line2))
print('PROMPT="{}"'.format(prompt), end='')
>>
>>52679948
i'm not sure what your point is here. is it that oh-my-zsh is just about the aliases? in that case, it's more than copying that one set of aliases.

are you saying that not-comprehensive list of joke aliases in a plugin is evidence that the whole thing is bad? that's throwing the baby out with the bath water, like dismissing a program like MS Excel on the basis that it has (had?) an easter egg videogame in it. it's one little thing that's out of the way. chill.
>>
>>52679494
>luddite
Looking at 3 different distro reps and googling the fuck out of this
Nothing comes up
>>
File: 1441502321438.png (12KB, 566x361px) Image search: [Google]
1441502321438.png
12KB, 566x361px
>>52679494
omz is garbage.
Just use vanilla ZSH retard.
>>
>>52680018
Please share you colors.
>>
>not using fish
>>
>>52680057
but isn't OMZ just fancy zsh config scripts?
>>
>>52679881
No.
same basic shit zsh is just extra func
>>
>>52680057
be specific please.
>>
>>52680106
Yes, it's useless bloat, hence why i said use vanilla ZSH and configure it yourself like i have.
>>
>>52680141
git functions suck the fuck arent
>>
LMAO what a bunch of closet homosexuals
http://shop.planetargon.com/products/ohmyzsh-t-shirts
>>
>>52680129
$ sudo pacman -S zsh
$ zsh

And proceed to configure ZSH without downloading OMZ garbage.
It's not fucking hard.

You don't need OMZ for fancy tab completion, vanilla ZSH can do it too with some configuration.
>>
File: 1439835140272.png (64KB, 811x211px) Image search: [Google]
1439835140272.png
64KB, 811x211px
>>52680170
>>
>>52680208
REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
SOMEONE IS BEING SUCCESSFUL. OFFERING A SERVICE THAT DOES STUFF FOR PEOPLE.
WHEN I CAN DO IT MANUALLY
REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
>>
File: 1423219104721.jpg (218KB, 1024x768px) Image search: [Google]
1423219104721.jpg
218KB, 1024x768px
fuck off apple shills
>>
>>52679981
>power steering is car bloat
it literally is
>>
>>52680038
a "Luddite" is one opposed to industrialisation,automation,computerisation or newtechnologiesin general.

https://en.m.wikipedia.org/wiki/Luddite
>>
File: 1450491046836.jpg (2MB, 4940x3740px) Image search: [Google]
1450491046836.jpg
2MB, 4940x3740px
>>52680208
>some people actually wear these
>>
>>52679504
>It also cycles through different possible tab completions in the command line, rather than just showing you a list of options and expecting you to type yourself.
Bash can do this as well
>>
>>52680187
> with some configuration
but... that's what omz is... you seem to have nmh syndrome.
>>
>>52679461
pretty much this. zsh is cool, I install it on every machine I expect to be using on a regular basis but it's really only a handful of minor features on top of bash, other alternatives like fish are in a lot of ways a better idea, it's kind of a case of worse is better.
>>
zsh is nice
omz is not
>>
I get paid to use korn shell
>>
>>52679451
You misspelled "bash"
>>
>>52680425
/thread
>>
Is this good?
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
zstyle ':completion:*' completer _expand _complete _ignored _approximate
zstyle ':completion:*' menu select=2
zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
zstyle ':completion::complete:*' use-cache 1
zstyle ':completion:*:descriptions' format '%U%F{cyan}%d%f%u'
zstyle ':completion:*' rehash true
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
setopt completealiases
>>
Users of zsh+oh-my-zsh usually are the same fags who use atom editor and macbooks.
>>
>>52680425
repeating the same memes is only going to attract idiots. if you believe what you shill, then you should justify it with tangible reasons.
>>
There is little to no reason to not use bash today.
>>
>>52680382
I used to think that, then I used zsh and realized that the two functionalities aren't really comparable
>>
>>52680425
what's wrong with omz?
>>
>>52680106
OMZ makes ZSH take longer to start than Linux boot.
>>
>>52680560
nothing as long as you DISABLE_AUTO_UPDATE="true"
>>
File: 1262476639668.jpg (117KB, 750x1099px) Image search: [Google]
1262476639668.jpg
117KB, 750x1099px
You got me.

Everyone saying that oh-my-zsh is bad is just trolling. Heh, you really had me worked up there!
>>
>>52680553
What if its not included in my OS?
>>
>>52680627
are you talking about zsh itself, or the update setting? the update timeout is rather aggressive, but i've never heard of the diff update taking someone that long unless they were unbelievably out of date and using an internet connection measured in baud.

regardless, if you want to turn it off, you can, and if you want to set it to a week or a month or whatever, that's doable too.

i realize omz makes things easier but there is still some expectation that the user is capable of taking basic care of himself.
>>
>>52680755
what operating system (other than windows) doesn't include bash? even os x bakes in (albeit grossly outdated) utilities.
>>
>>52680839
The big three commercial Unix's (solaris, HP-UX, IBM AIX) all use sh or ksh. *BSD's use ksh or tcsh. and Fun Fact: MacOSx being a BSD originally used tcsh until 10.3.
>>
>>52680937
that's interesting. what percentage of users are using solaris or HP-UX or IBM AIX these days?

like i guess what i'm asking is whether your earlier question is purely academic or actually practical.
>>
File: time.png (1KB, 342x80px) Image search: [Google]
time.png
1KB, 342x80px
>>52680818
I'm talking about how long it takes for OMZ to load its shit.

You get a non zero time here.
>>
>>52680991
i'm only seeing zeros in your screenshot.
>>
>>52680755
It is your fault, mate.
>>
File: not appropriate.png (7KB, 256x113px) Image search: [Google]
not appropriate.png
7KB, 256x113px
zsh + ls_colors + zsh-syntax-highlighting = never wanting to leave your terminal ever
>>
>>52680952
Solaris still has some market representation, I work at a large company and we have a few racks worth of solaris servers, we had a few shell servers running it in college as well.

I haven't seen HP or AIX, ever, but then sample size one.

The BSDs have a decent presence in the open source world.
>>
>>52681023
Because I'm not using OMZ. I'm not going to set up that shit for some anon to prove a point.
>>
>>52681608
so what was the point of the screenshot...?
>>
>>52681354
+zbell for letting you know when those long-running processes end.
>>
>Not using Fish: The Meme Shell
>>
File: fakefetch.png (9KB, 564x359px) Image search: [Google]
fakefetch.png
9KB, 564x359px
>>52680937
Solaris includes bash, you just have to set your account up to use it.
>>
>>52682791
Fish is nice. Dunno why people hate on it so much
>>
>>52682859
They hate it because it's not sh. Nevermind that its scripting language actually makes fucking sense and that it will run bash/sh scripts just fine as long as they have the fucking #! at the top.
>>
>>52682791
>>52682859
>>52682891

FUCK
IT
SHIT
HAPPENS

F.I.S.H.

It was what Drake said after YOLO
>>
>>52682891
>it will run bash/sh scripts just fine as long as they have the fucking #! at the top.
You wot. Chrome runs bash scripts just fine too as long as they have the fucking crunchbang.
>>
Why not use real shell like posh?
>>
>>52682927
I don't believe you. What business does a browser have, execute scripts on my machine?
>>
>>52679451
What a pretentious picture.

1) They replaced the word god with zsh, implying that zsh is godly

2) There's a bunch of people standing around the viewer in a slightly pressuring half-circle formation, implying that if you do not like zsh, you are at best not part of the "cool kids" and at worst gonna get your ass beaten.

It's like the violent geek version of Jehovah witnesses or mormons.
>>
>>52679451
You've convinced me.

Just did https://wiki.gentoo.org/wiki/Zsh/Guide and got my aliases and shit set up again.

Seems not that much different, but the completion is certainly better.
>>
>>52682953
His point was that fish doesn't actually execute your bash scripts, bash does, fish just invokes bash to do it. The doesn't change the fact that fish interoperates with bash scripts just fine of course but then literally any shell can do that.
>>
>>52682993
My original point was that the usual complaint of "fish isn't bash compatible so I can't use the massive amount of bash scripts out there" is baseless. How fish does it is not important to my point. Of course it invokes bash and of course it understands #! at the top of a script means to run the script using that
>>
>>52683016
right, I agree with you, I was just explaining why he took issue with "fish runs bash scripts", even if it's a non-complaint
>>
>>52682976
You have a long, happy life ahead of you. That completion will start to change the way you work. Type half a command you've run before, then hit the up arrow. Then try that shit again in bash.

Lastly, download and setup zbell to email you when anything that's been running for more than two minutes is complete.
>>
>>52683100
I'm a fish user myself so I love the command history thing too, but bash does have that. Hit C-r and start typing a command you've run before.
>>
posy yr .zshrc

plugins=(git python django opp lein lol nyan)

source $ZSH/oh-my-zsh.sh

# User configuration

export PATH="/Library/Python/2.7/site-packages/coverage/coverage.py:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/go/bin"
# export MANPATH="/usr/local/man:$MANPATH"

# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='mvim'
fi

_from_git_root() {
TOP_LEV=$(git rev-parse --show-toplevel)
echo "$TOP_LEV/$1"
}
gcd() {
#TRGT=$TOP_LEV | tr -d '\r')
cd `_from_git_root $1`
}

# Vi mode
bindkey -v

# Visual indication of mode
function zle-line-init zle-keymap-select {
VIM_PROMPT="%{$fg_bold[yellow]%} [% NORMAL]% %{$reset_color%}"
RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $EPS1"
zle reset-prompt
}

zle -N zle-line-init
zle -N zle-keymap-select

# GOTTA GO FAST!
export KEYTIMEOUT=1
>>
Can some one actually tell me why I would want to use oh-my-zsh?
What do I actually gain over vanilla zsh?
>>
File: 1454058177.png (127KB, 795x825px) Image search: [Google]
1454058177.png
127KB, 795x825px
>>52683578
dunno about oh my zsh, dont remember from time Ive been using it
but I use Prezto
https://aur.archlinux.org/packages/prezto-git/

and the point of it is that I dont need to know anything about zsh, like nada and I get most of the cool zsh features right after installing it...
with just zsh you would have to script a lot of things to actually take advantage of zsh capabilities
also prezto is faster than oh my zsh

heres also zim
https://github.com/Eriner/zim
newcomer supposed to be even faster than prezto
https://github.com/Eriner/zim/wiki/Speed
>>
>>52679494
>oh-my-zsh
this is literally bloat - you can do everything it offers without this cringeworthy piece of hipster shit
>>
>>52683578
bloat
>>
>>52683704
Isn't pretzo kinda outdated though?
I could try it out though. Because just looking through the git page I can see that oh-my-zsh is full of a load of crap.
>>
>>52683781
dunno really
it works and I dont tinker with it zsh
so I would not know some progress in the project or lack of it
I like that it has out of the box the fish shell thing, where it shows you valid commands green and non valid red as you type
>>
>using meme shells
lmao
>>
>>52679451
You should be making all scripts POSIX compliant. Therefore what she'll you use is irrelevant, and purely a matter of personal preference.
Thread posts: 99
Thread images: 14


[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.