Made by Nathan

programming and projects

Add .bashrc to iPhone for SSH or MobileTerminal

| Comments

When you SSH into your iPhone, or if you use MobileTerminal, you might want to use some of the aliases or functions that you’re used to.

To do this:

  1. Create and edit your “.bashrc” file at “/var/root/.bashrc”
  2. Add the following line to “/etc/profile”:
source /var/root/.bashrc

An example alias would be: alias respring=“killall SpringBoard”

Colored prompts look great in MobileTerminal too.

This is the bashrc that I use on my iPhone.