Home
Theory
News
Documentation
Download
Bio
Builtin mpsh commands all display usage with "-h", and generally use the following options, as appropriate:

-s show (formatted for easy reading)
-q show quoted (formatted for use as a command)
-c clear all
-d delete one item

All internal mpsh commands:

.

Execute script in the current shell:

mpsh$ . file

alias

mpsh$ alias
mpsh$ alias -s
mpsh$ alias -q
mpsh$ alias -d name
mpsh$ alias -c

cd

Change directory:

mpsh$ cd
mpsh$ cd dir
mpsh$ cd !str
mpsh$ cd !n
mpsh$ cd !

Show or clear directory history:

mpsh$ cd -s
mpsh$ cd -c

exit

mpsh$ exit [n]

fg

Resume a stopped job:

mpsh$ fg [pid]
mpsh$ fg %job
mpsh$ fg %-

history

Show history:

mpsh$ history [n]
mpsh$ history -s [n]
mpsh$ history -l [n]
mpsh$ history fmt [n]

Clear history:

mpsh$ history -c

jobs

Show jobs:

mpsh$ jobs [%job]
mpsh$ jobs -s [%job]
mpsh$ jobs -l [%job]
mpsh$ jobs fmt [%job]

Delete one job:

mpsh$ jobs -d %job

macro

mpsh$ macro
mpsh$ macro -s
mpsh$ macro -q
mpsh$ macro -d num
mpsh$ macro -c

setenv

Set environment variable:

mpsh$ setenv name=val
Show environment variables:

mpsh$ setenv -s
mpsh$ setenv -q

Show environment variable command aliases:

mpsh$ setenv -sa
mpsh$ setenv -qa

Show mpsh internal settings:

mpsh$ setenv -si
mpsh$ setenv -qi

Show mpsh job handlers:

mpsh$ setenv -sh
mpsh$ setenv -qh

Delete environment variable (any type):

mpsh$ setenv -d name

Clear environment variables, command alias variables, job handlers, or reset internal settings to defaults:

mpsh$ setenv -c
mpsh$ setenv -ca
mpsh$ setenv -ch
mpsh$ setenv -ci

show-path

mpsh$ show-path
mpsh$ show-path command

wait

mpsh$ wait [pid]