> For the complete documentation index, see [llms.txt](https://longer-vision-robot.gitbook.io/raspberry-pi-full-stack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://longer-vision-robot.gitbook.io/raspberry-pi-full-stack/chapter-2.-getting-familiar-with-raspbian/2.2-matlab-like-bash.md).

# 2.2 Matlab Like Bash

**First of all**, make sure you are under the **HOME** directory, and then create a hidden file named **.inputrc**.

![Image](https://625702022-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LBY-O3EwoOkuXt6PKFT%2F-LBY-TAnIw7CAUhJHWPK%2F-LBY-U9R4kT57bqgYzS6%2Finputrc_create.jpg?generation=1525300723382623\&alt=media)

Then, we modify the file **.inputrc** by **vim**.

```
# Matlab like Bash history
"\e[B": history-search-forward
"\e[A": history-search-backward

# Include system wide settings which are ignored
# by default if one has its own .inputrc
$include /etc/inputrc
```

![Image](https://625702022-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LBY-O3EwoOkuXt6PKFT%2F-LBY-TAnIw7CAUhJHWPK%2F-LBY-UACfU4p8hyd0Nbl%2Finputrc_content.jpg?generation=1525300721551408\&alt=media)

**Afterwards**, we added the following snippet of code at the end of file **.bashrc**.

```
# Load inputrc
export INPUTRC=~/.inputrc

# Ignore multiple entries of the same command in history
export HISTCONTROL=ignoreboth
```

![Image](https://625702022-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LBY-O3EwoOkuXt6PKFT%2F-LBY-TAnIw7CAUhJHWPK%2F-LBY-UBAlIRKKvk89OO8%2Fbashrc_inputrc.jpg?generation=1525300721599785\&alt=media)

**Finally**, we will be able to have **Matlab like Bash**. That is to say: if we type in **ls** , and then press **↑** or **↓**, we will be able to see all **ls** commands **ONLY**, regardless of all other previous commands.
