- Zsh Completions
- Zsh Autosuggestions Key Binding
- Zsh-users · GitHub
- Feature Request: Fish-like Autocompletion And Autosuggestion ..
Installs (30 days) zsh-autosuggestions: 3,496: Installs on Request (30 days) zsh-autosuggestions: 3,490: Build Errors (30 days) zsh-autosuggestions: 0: Installs (90 days). GitHub Gist: instantly share code, notes, and snippets. Jul 30, 2019 I also found a very simple theme that only shows me what I need, similar to my previous zsh theme. Autosuggestion This is the main reason I moved to fish. I originally was using the zsh-autosuggestions which is 'Fish-like autosuggestions for zsh'. This is what drew me to fish, this is by far my most used feature. This tutorial shows how to install zsh and configure 'Oh my zsh' framework on the Linux machine. Z shell (Zsh) is one of the most powerful shell interpreters which is an extended version of bash, tcsh, and ksh. It is a very popular command-line productivity tool for web developer’s workflow.
An essential tool for any developer is a text-based shell or command-line interface (CLI). Attempting to develop top quality software without making use of a CLI is nigh impossible. These magnificent tools come in various flavours and standards. However, they all share a common goal: to provide instructions to your operating system.
![Autosuggestion Autosuggestion](https://discuss.getsol.us/assets/files/2019-11-25/1574725313-914061-image.png)
Your choice of shell is largely constrained by the base operating system with UNIX based operating systems providing the largest degree of customisability. Windows users may find themselves stuck to using cmd and Powershell. However, Cygwin, Cmderand the new Ubuntu Subsystem may be utilised to provide temporary relief. More permanent relief is achieved by switching to Ubuntu (or similar) and so the rest of this tutorial assumes Ubuntu is being used.
One particularly excellent shell is Z shell (Zsh). On its own it is already a massive upgrade from bash.
Installing Zsh is made incredibly easy by using a package manager. To install Zsh on Ubuntu run the following in your standard terminal (Ctrl + Alt + T):
sudo apt-get install zsh
Then, verify it has installed correctly:
zsh --version
Next we want to set it to our default shell:
chsh -s $(which zsh)
That's it, Zsh is now installed and set to your default shell. You may need to logout and log back in for the default shell setting to take effect. Upon opening a terminal again you will be asked some setup questions; select the option which populates your configuration with the default system administrator recommended settings.
Oh My Zsh is an open-source configuration manager for Zsh. Using it vastly improves Zsh and allows you to make your terminal behave, look and feel however you want. To install Oh My Zsh run the following (from their website):
sh -c '$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)'
This command executes an installation shell script retrieved via curl from the master branch of the Oh My Zsh Chemdraw torrent crack code. Github repository. This script should manage everything for you and upon completion you should have a beautiful new terminal; another upgrade.
Next up, let's install an Oh My Zsh plugin: zsh-autosuggestions. This plugin is a life-changer and I'm unsure of whether I would be able to develop without it. It suggests in a light gray text what you are going to type based on your command history. This is extremely useful for those tricky grep commands or repetitive Git commands.
To install (based on their Install.md) run the following command (which utilises our previously installed Oh My Zsh):
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
This command clones the latest version of the plugin to the custom plugins directory of Oh My Zsh using Git.
In order for this plugin to actually be used we need to add it to our .zshrc, the Zsh configuration file. To do this, open ~/.zshrc in your favourite text editor and add zsh-autosuggestions to your plugins array. It should look something like this when you're done:
Close and open another terminal session to see whether it has worked or not.
Your shell should now look something like this:
I hope this tutorial has helped you install and setup an amazing terminal tool. Out of the box, it should already be a vast improvement over almost anything else. The options for further customisation and extension are limitless and I leave that up to the reader to explore. If you find any plugins or themes particularly useful please share in the comment section below.
This tutorial shows how to install zsh and configure 'Oh my zsh' framework on the Linux machine. Z shell (Zsh) is one of the most powerful shell interpreters which is an extended version of bash, tcsh, and ksh. It is a very popular command-line productivity tool for web developer’s workflow.
Some of the prominent features are:
- Better tab completion
- Easy directory navigation
- Supports lots of Themes and Plugins
- Syntax highlighting
- Auto completion
- Interactive configuration
- Color customization
Install ZSH on Linux
By default, Ubuntu and Debian distros do not have zsh. To install zsh on ubuntu 20.04 and Debian 10, run:
On CentOS 8:
![Zsh-autosuggestions Zsh-autosuggestions](https://cdn-images-1.medium.com/max/2400/1*ZiTrbBVUGLWe4OwRL1Ytrg.gif)
To verify the zsh installation:
From the output you can see, zsh has been successfully installed in
/usr/bin/zsh
.Change the current shell
First, check what shell you are currently running on by the following echo command:
or
The above output shows the currently using shell is 'bash’. To change the default shell, you have to run the following chsh command: Simatic step 7 v5 3 crack download.
Logout from the current session, now when you log in to terminal you will have Zsh shell instead of default bash.
Note: On CentOS 8 install 'util-linux-user' package to have chsh:
or
Install 'Oh my zsh' Framework
Oh My Zsh is an open-source framework that runs on top of Zsh. It comes with lots of features, themes, and plugins.
Firstly, you have to install wget and git for downloading the necessary installer tools:
On Ubuntu:
On CentOS:
Then, download the Oh My Zsh installation script, run:
Output:
The installation folder is ‘~/.oh-my-zsh’, run ls command to list its contents:
Next, you have to create a configuration file for the zsh shell. You can copy the configuration template from ‘~/.oh-my-zsh’ folder to your home directory:
Now on running ls command, you will notice a new look.
How to Change the theme
By default, Oh-my-zsh uses 'robbyrussell' theme. You can find that by opening the
.zshrc
file:There are many other themes available and in
~/.oh-my-zsh/themes/
directory.To change the default theme, edit the
.zshr
c file and change the default theme.Zsh Completions
For example to change the theme to 'kiwi' update as shown:
Then, apply the change by running:
$ source .zshrc
How to Enable plugins
There are many plugins offered by Oh-my-zsh. You can list all of them in
~/.oh-my-zsh/plugins
directory.In order to enable plugins, edit
.zshrc
file and add the corresponding plugins to the ‘plugins’ line.For example:
Configure syntax highlight on Zsh
If you want to enable the syntax highlight on Zsh shell, clone the zsh-syntax-hightlighting from github and move it to plugins folder:
Then, insert the following line at the end of the
~/.zshrc
file:Configure autosuggestions on Zsh
While you type a command on zsh shell, it’s useful if the shell supports the autosuggestions mechanism. Fortunately, oh-my-zsh supports this feature very well.
To enable auto-suggestion install zsh-autosuggestions plugin:
Zsh Autosuggestions Key Binding
Then add the plugin to the list of plugins in
~/.zshrc
file:Now apply the change by running:
Conclusion
Zsh-users · GitHub
In this tutorial, we learned how to install and configure ZSH on Ubuntu 20.04 and CentOS 8 machines.
Feature Request: Fish-like Autocompletion And Autosuggestion ..
Fish shell is another good alternative, worth trying for a better terminal experience. Thanks for reading and please leave your suggestion in the below comment section.