# 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](/files/-LBY-U9R4kT57bqgYzS6)

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](/files/-LBY-UACfU4p8hyd0Nbl)

**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](/files/-LBY-UBAlIRKKvk89OO8)

**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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://longer-vision-robot.gitbook.io/raspberry-pi-full-stack/chapter-2.-getting-familiar-with-raspbian/2.2-matlab-like-bash.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
