zoukankan      html  css  js  c++  java
  • How to install the zsh shell in Linux && how to set it as a default login shell

    Z shell’s (zsh) popularity has increased in the last years. I have not moved too zsh yet, but I am going to do that.

    zsh is not installed in Linux by default, but it can be installed easilly with a package manager:

    1. Check if zsh is already installed on your Linux:

    $ < /etc/shells grep zsh
    /bin/zsh
    /usr/bin/zsh

    If you get an output (like I got), it means zsh already exists on your OS. If not, feel free to install it.

    2. Download and install the Z shell:

    For Debian based distros:

    $ sudo apt-get install zsh

    For Red Hat based distros:

    $ sudo yum install zsh

    For Suse based distros:

    $ sudo zypper install zsh

    To simple use zsh, type zsh in your terminal:
    $ zsh

    3. How to set zsh as the default login shell:

    This works on Fedora / Debian / OpenSuse:chsh -s /bin/zsh user

    $ sudo chsh -s /bin/zsh yoda
    $ finger yoda | grep zsh
    Directory: /home/yoda Shell: /bin/zsh

    If you want to customize the Z-shell, edit ~/.zshrc:

    vim ~/.zshrc

    Ref:

      http://linuxg.net/how-to-install-zsh-shell-how-to-set-it-as-a-default-login-shell/

    转载本Blog文章请注明出处,否则,本作者保留追究其法律责任的权利。 本人转载别人或者copy别人的博客内容的部分,会尽量附上原文出处,仅供学习交流之用,如有侵权,联系立删。
  • 相关阅读:
    JQuery中serialize()、serializeArray()和param()方法示例介绍
    新的跨域策略:使用COOP、COEP为浏览器创建更安全的环境
    react的状态提升
    HTTP/0.9、HTTP/1.0、HTTP/1.1、HTTP/2、HTTP/3各版本之间的区别?
    面试常见的http问题
    什么是模块化?
    什么是Node js
    Asynchronous
    初识ajax
    浅拷贝与深拷贝
  • 原文地址:https://www.cnblogs.com/drfxiaoliuzi/p/5492157.html
Copyright © 2011-2022 走看看