0.1.3 • Published 10 years ago

shell-prompt v0.1.3

Weekly downloads
6
License
-
Repository
-
Last release
10 years ago

shell-prompt

Get the PS1 or prompt variable based on your shell type

Installation

This module is installed via npm:

$ npm install shell-prompt

Example Usage

Asynchronous version

var prompt = require('shell-prompt');
prompt(function (err, ps1) {
  // ps1 will be the PS1 variable for bash,sh,zsh
  //     or the 'prompt' variable for csh,tcsh
  //     or default to '$ ' if not set
});

Synchronous version

var prompt = require('shell-prompt');
var ps1 = prompt.sync();
// ps1 will be the PS1 variable for bash,sh,zsh
//     or the 'prompt' variable for csh,tcsh
//     or default to '$ ' if not set
});
0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago