A lot of these can be easily done in Bash, too! 1. `mkcdir () { mkdir -- "$1" && cd -- "$1"; }` 2a. `bind '"\e[A":history-search-backward'; bind '"\e[B":history-search-forward'` 2b. Default behavior for Bash. 3. `shopt -s autocd` 4. `mmv`, `perl-rename` 5. `qalc` from libqalculate: https://github.com/Qalculate/libqalculate 8. Default behavior for Bash. 9. Default behavior for Bash.
This is always my complaint about posts like this. I read them looking for the killer feature to make me consider switching from bash and it's always stuff bash does natively or with a one line alias.
Zsh Tricks to Blow Your Mind
31–40 of 218 posts
Re: Zsh Tricks to Blow Your Mind
#32Re: Zsh Tricks to Blow Your Mind
#33Earlier quoted context omitted.
This is always my complaint about posts like this. I read them looking for the killer feature to make me consider switching from bash and it's always stuff bash does natively or with a one line alias.
I'm happy in zsh or bash but the one thing I love in zsh is that completion options for program arguments. Having a list with a snippet of documentation to tab through is a huge benefit.
Re: Zsh Tricks to Blow Your Mind
#34Re: Zsh Tricks to Blow Your Mind
#35A good guide (although a bit old and maybe too thick :) ) is this one: http://zsh.sourceforge.net/Guide/zshguide.pdf
Re: Zsh Tricks to Blow Your Mind
#36A lot of these can be easily done in Bash, too! 1. `mkcdir () { mkdir -- "$1" && cd -- "$1"; }` 2a. `bind '"\e[A":history-search-backward'; bind '"\e[B":history-search-forward'` 2b. Default behavior for Bash. 3. `shopt -s autocd` 4. `mmv`, `perl-rename` 5. `qalc` from libqalculate: https://github.com/Qalculate/libqalculate 8. Default behavior for Bash. 9. Default behavior for Bash.
This is always my complaint about posts like this. I read them looking for the killer feature to make me consider switching from bash and it's always stuff bash does natively or with a one line alias.
Re: Zsh Tricks to Blow Your Mind
#37Earlier quoted context omitted.
I'm happy in zsh or bash but the one thing I love in zsh is that completion options for program arguments. Having a list with a snippet of documentation to tab through is a huge benefit.
Bash supports completions as well.
Re: Zsh Tricks to Blow Your Mind
#38Do people... actually use this font in their terminal? I would go absolutely nuts looking at the spacing and color scheme.
Re: Zsh Tricks to Blow Your Mind
#39If you’re on 10.15 (Catalina) there’s no need to install zsh, it is the default shell. If you’ve upgraded and are still using bash, just do ‘chsh -s /bin/zsh’ to set the default to zsh.
Is there something I'm missing, like a good default .zshrc?
Re: Zsh Tricks to Blow Your Mind
#40Do people... actually use this font in their terminal? I would go absolutely nuts looking at the spacing and color scheme.