Skip to content

The print Command

Print the contents of a script.

msh print <script-name>

Arguments

  • script-name: The name of the script to print.

Flags

  • -run, -r: Run the script after printing it and confirmation.

Example

shell
$ msh print npi -run
File: ~/.myshell/scripts/npi
---
#!/bin/bash
#??Alias for the 'npm install' command
#&&npm,web,js

echo "npm install $*""
npm install $*
---
Do you want to run the script? (Y/n): Y
Arguments: vite -D
---
npm install vite -D
...