ZSH and Oh My ZSH on IOS, iPad and iPhone with Alpine Linux and iSH

by

in

How tu use ZSH and oh-my-zsh on ios, iPad and iPhone with Alpine Linux

Docs

Alpine Linux Wiki

iSH – The Linux shell on iOS

Run Alpine Linux on Your iPhone in Less Than 5 Minutes

Install ZSH

Install zsh with curl, wget and git

apk add zsh curl wget git

Set ZSH at the primary shell

Set zsh as the shell

nano /etc/passwd

Change

root:x:0:0:root:/root:/bin/ash

and

[user]:x:1000:1000:Linux User,,,:/home/u:/bin/ash

to

root:x:0:0:root:/root:/bin/zsh

and

[user]:x:1000:1000:Linux User,,,:/home/u:/bin/zsh
replace [user] with your user

Restart the shell

source ~/.zshrc

If you get a error message about missing zsh config files create them manually:

nano .zshenv
nano .zprofile
nano .zshrc
nano .zlogin

Verify that ZSH is the primary shell

echo $SHELL

Check the version of ZSH

zsh --version

Install Oh-my-ZSH

Follow the instructions on:

https://ohmyz.sh

Install Powerlevel9k

Follow the instructions on:

Powerlevel9k

Install the required fonts to

Install Powerlevel9k fonts

Instructions for font install