Raspberry Pi Full Stack
  • Preface
  • Part 1 - Introduction
  • Chapter 1. Getting Started with Raspberry Pi
    • 1.1 About Raspberry Pi 3B
    • 1.2 Raspberry Pi Online Resource
    • 1.3 Install Raspbian onto a Raspberry Pi 3B
    • 1.4 Raspberry Pi Configuration
    • 1.5 Network Configuration
    • 1.6 Package Update & Upgrade
  • Chapter 2. Getting Familiar with Raspbian
    • 2.1 Package Management
    • 2.2 Matlab Like Bash
    • 2.3 Install Packages from Repository
    • 2.4 Install Packages from Source
  • Part 2 - GPIO
  • Chapter 3. Raspberry Pi GPIO
    • 3.1 GPIO Web Server
    • 3.2 GPIO Pin Test
  • Part 3 - Pi Camera
  • Chapter 4. Pi Camera
  • Part 4 - Raspberry Pi Based Mini Automated Vehicle
Powered by GitBook
On this page
  1. Chapter 2. Getting Familiar with Raspbian

2.2 Matlab Like Bash

Previous2.1 Package ManagementNext2.3 Install Packages from Repository

Last updated 7 years ago

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

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

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

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.

Image
Image
Image