02 Dec 2011 22:26:28 UTC
- Distribution: App-psst
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Testers (213 / 99 / 10)
- KwaliteeBus factor: 0
- % Coverage
- License: perl_5
- Perl: v5.8.0
- Activity24 month
- Download (23.65KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionMCAST Matthew Astley
psst - prompt string setting tool
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.
This script is intended to run during the login profile. It ought to be reliable and failsafe, lightweight and require minimal early 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.
Write the base value for $PS1 here to avoid the need to pass it to each call to
If present, should be a list of
[ $text, $replacement ]pairs. These are applied in order to the
$PERL_LOCAL_LIB_ROOTby Bash, after being munged into a set of Bash Variable Substitutions.
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.
~/.psst.yaml is the configuration file, taking
Copyright (C) 2011 Genome Research Limited
Author Matthew Astley firstname.lastname@example.org
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.