Skip to content

Holy Moly, I've gone three years and am just finding out about Vi Mode (both bash/zsh) and the Awesomeness of ZSH in general πŸ€¦πŸ½β€β™‚οΈ

This is a rant, and hopefully even one person can get something useful from it.

I am a contrarian by nature. I think if most people are doing/using something then it must be stupid and not worth while. For years people have been talking about ZSH over Bash. My disdain for Apple users in general just made me thumb my nose at it, not even for a second bothering to look into it myself.

My buddy just got into linux, he programs in dotnet mostly but had to do some heavier python stuff and decided that he would learn linux at the same time. The people at his job all use zsh, and he came over the other day, and I was floored at his comfort level with the terminal after just a week of use.

I'm not slamming Bash at all, but the way he had his zsh setup just made his life exponentially more easier. And then he showed me his Vi Mode setup and I was jealous. I've been navigating my terminal so dumbfoundly stupid in comparison. It's got the Vim goodness of VISUAL selection and REPLACE, and hjkl navigation, and his cursor changes.

I copied his .zshrc. It loads a bit too slow for me, so I'm looking into ble.sh and trying to see just how much I can emulate in bash (and praying it won't impact the performance)

Just don't be that person. Don't be a contrarian just for the sake of it. You just might learn something when you don't.

28 points15 comments
Open on Reddit
About this post
Posted
Archived
Score
28 Β· 79% up
Kind
Text
ID
17aaveb

Author

72
posts
1.2k
comments
5
media
View profile

15 comments

Just use fish. Like zsh but no plugins/addons necessary. WOOTB

28 points

Fish ain't POSIX complient, plus it has stuff you don't need. Plugins are great as you can simply install exactly what you need, nothing more, nothing less.

Just use Ubuntu. Like Arch but no manual installation necessary.

2 points

Fish not being POSIX compliant on its own is great, but I write shellscripts pretty regularly so in that terms I'm with ZSH (even if I write scripts in dash)

If I didn't write scripts, yeah fish is a no brainer.

1 points

Having disdain for Apple users is weird to begin with as it's very popular with lots of very competent developers, but ZSH's popularity has nothing to do with Apple.

It has only been the macOS default shell for a few years and the version shipped with it is outdated and comes without any of the popular plugins. It's barely distinguishable from bash.

ZSH is nearly as old as bash.

Still, great that you got over yourself and learned something new. Th e beautiful thing about free software is that thanks to its long history there's always something new to learn and some different approach that might suit you.

12 points

Wow I hate how pretentious you are in the first two paragraphs

7 points

Emacs broke me. I started using it in 1992, began programming in elisp (the javascript of the time) and got caught up in a religious war. As a result I never taught myself vi/vim. Nowadays I rarely use emacs. Instead I use crap like gedit and sublime text because I can't be bothered. I wish I had gone for vi/vim instead. :D

Same story with bash really. It's so hard to give up something you've been using for two+ decades.

1 points

Bash is a garbage interactive shell. Zsh and fish are the only viable choices for your login shell. Pick one and learn it, then forget about trying to improve bash. The difference between bash and the other shells is too large.

-22 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←orβ†’
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.