Tuesday, December 3, 2019

10 Zsh Tips & Tricks: Configuration, Customization & Usage

As web developers, the command line is becoming an ever more important part of our workflow. We use it to install packages from npm, to test API endpoints, to push commits to GitHub, and lots more besides.

My shell of choice is zsh. It is a highly customizable Unix shell, that packs some very powerful features such as killer tab completion, clever history, remote file expansion, and much more.

In this article I'll show you how to install zsh, then offer ten tips and tricks to make you more productive when working with it.

This is a beginner-level guide which can be followed by anybody (even Windows users, thanks to Windows Subsystem for Linux). However, in light of Apple's announcement that zsh is now the standard shell on macOS Catalina, mac users might find it especially helpful.

Lets get started.

Installation

I don't want to offer in-depth installation instructions for each operating system, rather some general guidelines instead. If you get stuck installing zsh, there is plenty of help available online.

At the time of writing the current zsh version is 5.7.1.

macOS

Most versions of macOS ship with zsh pre-installed. You can check if this is the case and if so, which version you are running using the command: zsh --version. If the version is 4.3.9 or higher, you should be good to go (we'll need at least this version to install Oh My Zsh later on). If not, you can follow this guide to install a more recent version of zsh using homebrew.

Once installed, you can set zsh as the default shell using: chsh -s $(which zsh). After issuing this command, you'll need to log out, then log back in again for the changes to take effect.

If at any point you decide you don't like zsh, you can revert to Bash using: chsh -s $(which bash).

Linux

On Ubuntu-based distros, you can install zsh using: sudo apt-get install zsh. Once the installation completes, you can check the version using zsh --version, then make zsh your default shell using chsh -s $(which zsh). You'll need to log out, then log back in for the changes to take effect.

As with macOS, you can revert back to Bash using: chsh -s $(which bash).

If you are running a non-Ubuntu based distro, then check out the instructions for other distros.

Windows

Unfortunately, this is where things start to get a little complicated. Zsh is a Unix shell and for it to work on Windows, you'll need to activate Windows Subsystem for Linux (WSL), an environment in Windows 10 for running Linux binaries.

There are various tutorials online explaining how to get up and running with zsh in Window 10s. I found these two to be up-to-date and easy to follow:

Note that it is also possible to get zsh running with Cygwin. Here are instructions for doing that.

First Run

When you first open zsh, you'll be greeted by the following menu.

The post 10 Zsh Tips & Tricks: Configuration, Customization & Usage appeared first on SitePoint.


by James Hibbard via SitePoint

Facebook Launches Encrypted Data Transfer Tool

As Facebook continues to shape our everyday lives, a lot of differences are starting to arise with regards to how we form memories over the course of our day to day routines. For example, if you have been using the social media platform for a significant period of time, chances are that you would...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Zia Muhammad via Digital Information World

There’s a new virus in Google Chrome browser that not only steals user credentials but also sends it to a Database

There’s a new password stealer in Google Chrome that not only steals user credentials but also sends the data to MongoDB Database as well. The world is moving more towards digitalization and it is something that we all pretty much like right? I mean who doesn’t want to be free from all the troubles...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by agha ali via Digital Information World

Does Big Tech Have Too Much Power? [Infographic]

Has Big Tech become too big to fail? FAAMG, an acronym for Facebook, Amazon, Apple, Microsoft, and Google, was responsible last year for 68% of the U.S. GDP growth. If one of these companies were to fail or find itself in dire straits, it could collapse the entire economy. But what’s more, these...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Irfan Ahmad via Digital Information World

How to Automate Personalized Video Messages via Facebook Ads

Want to create a personal video message for each of your ad prospects? Wondering how to streamline the process? In this article, you’ll discover how to deliver personalized video messages to qualified Facebook leads at scale. Why Create Personalized Video Messages? Sometimes it seems the days of good social media comments are in the past […]

The post How to Automate Personalized Video Messages via Facebook Ads appeared first on Social Media Marketing | Social Media Examiner.


by Yvonne Heimann via Social Media Marketing | Social Media Examiner

Facebook Artificial Intelligence to take the place of its Content Moderators

Facebook is continuously facing privacy and security issues, and the user’s exposure to sensitive data on the platform just adds salt to the wounds. Facebook is famous for the spread of misinformation along with offensive content that could lead to wrong messages. Even though these are serious...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Madiha via Digital Information World

Fabio Carretti - Portfolio

Fabio Carretti - Portfolio
Portfolio of the Italian creative developer Fabio Carretti. Design by Brijan Powell.
by via Awwwards - Sites of the day