NAME

psst - prompt string setting tool

VERSION

version 0.05

SYNOPSIS

In ~/.bashrc add

# XXX: set up PATH and PERL5LIB as necessary

# Set shell and environment variables and create a function for
# prompt updating
eval "$( psst prompt "$PS1" )"

Then use local::lib as normal, by whatever means.

GOALS

This script is intended to run during the login profile. It ought to be reliable and failsafe, lightweight and require minimal early configuration.

CONFIGURATION

Configuration goes in ~/.psst.yaml and should consist of key/value pairs for one hash (dictionary). It is entirely optional, but can only be read if YAML is installed.

PS1_old

Write the base value for $PS1 here to avoid the need to pass it to each call to psst prompt.

PS1_substs

If present, should be a list of [ $text, $replacement ] pairs. These are applied in order to the $PERL_LOCAL_LIB_ROOT by Bash, after being munged into a set of Bash Variable Substitutions.

CAVEATS

Author reserves the right to turn this into the Portable Sanity Support Tool by adding other subcommands. A symlink-farm in ~/bin/ is a likely next target.

FILES

~/.psst.yaml is the configuration file, taking ~ from %ENV.

AUTHOR

Copyright (C) 2011 Genome Research Limited

Author Matthew Astley mca@sanger.ac.uk

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.