Install Fish Shell Latest Version

文章目录

    On my old ubuntu 18.04 system, fish shell version is very old, 2.7. When open tmux window with fish as default shell, so many errors show:

    There is no fish_key_bindings function called: “

    then tmux hangs … I can not work any more.

    So I want to install latest fish shell to resolve this issue.

    Remove Existed Version

    sudo apt remove fish
    sudo apt remove fish-common
    

    Download

    Go to fish shell web site:

    https://fishshell.com/

    Find download link for ubuntu version, then download latest version.

    Install

    sudo dpkg -i fish_3.6.1-1~xenial_amd64.deb
    

    Confirm

    > fish -v
    fish, version 3.6.1
    

    errors

    If not remove older version, there will be errors:

    $ sudo dpkg -i fish_3.6.1-1~xenial_amd64.deb
    Selecting previously unselected package fish.
    dpkg: regarding .../fish_3.6.1-1~xenial_amd64.deb containing fish:
     fish conflicts with fish-common
      fish-common (version 2.7.1-3) is present and installed.
    
    dpkg: error processing archive /mnt/d/backup/fish_3.6.1-1~xenial_amd64.deb (--install):
     conflicting packages - not installing fish
    Errors were encountered while processing:
     /mnt/d/backup/fish_3.6.1-1~xenial_amd64.deb