Cannot execute shell /bin/zsh when execute a shell command in vi

5,557

Solution 1

set default shell in vim

:set shell=/bin/bash

Thanks to Ubuntu Forum

Solution 2

have you installed zsh? Install it from here zsh Install zsh

Solution 3

To install zsh type the following in a terminal

sudo apt-get update
sudo apt-get install zsh
Share:
5,557

Related videos on Youtube

jungledrum
Author by

jungledrum

Updated on September 18, 2022

Comments

  • jungledrum
    jungledrum over 1 year

    I use bash. But it cannot find zsh. How to change this?

    ps:I don't want to install zsh.

  • Ayushya
    Ayushya over 6 years
    It works once! How can I make it permanent?
  • Nouar
    Nouar about 6 years
    Add this line to ~/.vimrc set shell=/bin/bash