Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/drewbrokke/nscript

Quickly create and manage shell scripts
https://github.com/drewbrokke/nscript

Last synced: about 2 months ago
JSON representation

Quickly create and manage shell scripts

Awesome Lists containing this project

README

        

# nscript

```
nscript - create and manage bash scripts

Usage:
nscript [-adfhlos]

Flags:
-a : Open the scripts folder in EDITOR (or NSCRIPT_EDITOR if the variable is defined)
-f : Bypasses deletion prompt. Only works with "-d"
-l : List all scripts managed by nscript
-h : Display this help message

Options:
-d <script name> : Delete the named script. Will prompt for confirmation
-o <script name> : Open the named script in EDITOR (or NSCRIPT_EDITOR if the variable is defined)
-p <script name> : Print the named script to the standard output
-r <old script name> <new script name> : Rename an existing script
-s <script address> <script name> : Create a new script from an existing local or remote script

Examples:
nscript mynewscript
nscript -o mynewscript
nscript -fd mynewscript
nscript -s ~/path/to/local/script/mylocalcript.sh mynewscript
nscript -s https://example.com/path/to/remote/script/remotescript.sh mynewscript
```