---
title: "Install fish shell in ubuntu"
description: "run command: sudo apt-add-repository ppa:fish-shell/release-3 sudo apt-get update sudo apt-get install fish set fish as default shell chsh -s /usr/bin/fish or c"
date: "2021-08-29"
author:
  name: "Nguyen Pham"
  role: "Xin chào. Mình thích lập trình và công nghệ. Đây là blog mình chia sẻ lại các kiến thức về lập trình, công nghệ."
  avatar: "http://0.gravatar.com/avatar/6fb61398e24046b34e13870dd6c357b9?s=128&d=mm&r=g"
category: "System"
tags: ["System", "Ubuntu", "fish", "ubuntu"]
coverImage: "https://2k1.org/wp-content/uploads/2021/08/Screenshot-from-2021-08-29-20-44-33.png"
featured: false
readingTime: "1 min read"
---

run command:

```
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt-get update
sudo apt-get install fish
```

set fish as default shell

```
chsh -s /usr/bin/fish
or
chsh -s $(which fish)
```

install oh my fish  
https://github.com/oh-my-fish/oh-my-fish

```
curl -L https://get.oh-my.fish | fish
```

set [agnoster](https://github.com/oh-my-fish/theme-agnoster) theme

```
omf theme agnoster
```

add newline [agnoster](https://github.com/oh-my-fish/theme-agnoster)

![](https://2k1.org/wp-content/uploads/2021/08/Screenshot-from-2021-08-29-20-44-33-1024x576.png)
