App-Devmode2
view release on metacpan or search on metacpan
lib/App/Devmode2.pm view on Meta::CPAN
=head1 SYNOPSIS
devmode2 [options] <session>
OPTIONS:
<session> A tmux session name to create or connect to
-l --layout[=]str
A layout to load if creating a new session
-s --save Save the current config to the session file
-c --cd[=]dir
Change to dir before running tmux
-C --curdir Saves the current director as the directory to change to
when next loaded. (implies --save)
-t --test Don't run any external command (eg tmux)
-v --verbose Show more verbose output
--man Show full help documentation
--help Show this
--version Show the version of devmode2
=head1 DESCRIPTION
C<devmode2> is a helper script for L<tmux> to simplify the creation and
management of sessions.
=head1 SUBROUTINES/METHODS
=head2 C<run ()>
Manage the logic to load sessions etc.
=head2 C<set_title ()>
Tries to set the terminal title to the session name (requires L<Term::Title>
to work).
=head2 C<sessions ()>
Gets a list of current tmux sessions.
=head2 C<process_config ($session, $option)>
Reads any config for C<$session> (from ~/.tmux/devmode2/$session) and
optionally saves that config.
=head1 DIAGNOSTICS
=head1 CONFIGURATION AND ENVIRONMENT
Bash auto completion helper (add to your C<~/.bashrc> file:
_devmode2() {
COMPREPLY=($(devmode2 --auto --current "${COMP_CWORD}" -- ${COMP_WORDS[@]}))
}
complete -F _devmode2 devmode2
=head1 DEPENDENCIES
=head1 INCOMPATIBILITIES
=head1 BUGS AND LIMITATIONS
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
=head1 AUTHOR
Ivan Wills - (ivan.wills@gmail.com)
=head1 LICENSE AND COPYRIGHT
Copyright (c) 2014 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077).
All rights reserved.
This module is free software; you can redistribute it and/or modify it under
the same terms as Perl itself. See L<perlartistic>. This program is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
=cut
( run in 2.017 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )