Skip to content

Latest commit

 

History

History
78 lines (43 loc) · 2.26 KB

DirsFunction.md

File metadata and controls

78 lines (43 loc) · 2.26 KB

nodejsscriptDocs


nodejsscript / s / DirsFunction

Interface: DirsFunction()

DirsFunction(options): ShellArray

Clears the directory stack by deleting all of the elements.

Parameters

options: "-c"

Clears the directory stack by deleting all of the elements.

Returns

ShellArray

Returns an array of paths in the stack, or a single path if +N or -N was specified.

DirsFunction(options): ShellString

Displays the list of currently remembered directories.

Parameters

options: "+N"

Displays the Nth directory (counting from the left of the list printed by dirs when invoked without options), starting with zero.

Returns

ShellString

Returns an array of paths in the stack, or a single path if +N or -N was specified.

DirsFunction(options): ShellString

Displays the list of currently remembered directories.

Parameters

options: "-N"

Displays the Nth directory (counting from the right of the list printed by dirs when invoked without options), starting with zero.

Returns

ShellString

Returns an array of paths in the stack, or a single path if +N or -N was specified.

DirsFunction(options): ShellString | ShellArray

Displays the list of currently remembered directories.

Parameters

options: string

Available options: - -c: Clears the directory stack by deleting all of the elements. - -N: Displays the Nth directory (counting from the right of the list printed by dirs when invoked without options), starting with zero. - +N: Displays the Nth directory (counting from the left of the list printed by dirs when invoked without options), starting with zero.

Returns

ShellString | ShellArray

Returns an array of paths in the stack, or a single path if +N or -N was specified.