App-devmode
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
bin/devmode view on Meta::CPAN
C<devmode> makes managing screen sessions simpler by managing session names
and configuration files.
C<devmode> configuration files are stored in the $HOME/.devmode/ directory.
Templates for creating new configuration files can be placed in the directory
$HOME/.devmode/template/, the default template creates a session that always
opens to the directory that devmode was run from, it is aimed at working with
perl packages.
=head2 BASH auto-completion
_devmode() {
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="--task -t --kill -k --list --ls -l --all -a --exists -e --multiconnect -x --create -c --chdir -d --reconnect -r --force_title -force-title -f --title_bar -title-bar -b --protect -p --short -S --server -s --auto -A --current -C --pre_cmd -p...
if [[ ${cur} == -* && ${COMP_CWORD} -eq 1 ]]; then
COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
elif [[ ${prev} == -s* ]]; then
local hosts=$(devmode --auto ssh)
COMPREPLY=($(compgen -W "${hosts}" -- ${cur}))
else
local sonames=$(devmode --auto full --current ${COMP_CWORD} ${COMP_WORDS[@]})
COMPREPLY=($(compgen -W "${sonames}" -- ${cur}))
fi
}
complete -F _devmode devmode
=head1 SUBROUTINES/METHODS
=head1 DIAGNOSTICS
=head1 CONFIGURATION AND ENVIRONMENT
The <Cdevmode> program uses 3 different types of configuration files:
=over 4
=item Screen
Stored in C<~/.devmode/[name]> are standard GNU Screen files.
=item mode
Each mode file can have a C,~/.devmode[mode].rc> to change default configuration.
It is stored in YAML format.
=item global
Stored inC<`/.devmode.rc> sets global defaults.
It is stored in YAML format.
=back
=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
Shannon Wynter - (http://fremnet.net/contact) (original)
Ivan Wills - (ivan.wills@gmail.com)
=head1 LICENSE AND COPYRIGHT
Copyright (c) 2007 Shannon Wynter, 2007-2013 Ivan Wills.
All rights reserved.
=cut
__DATA__
__rc__
[% TAGS <+ +> -%]
#
# Example of a user's .screenrc file
#
# This is how one can set a reattach password:
# password ODSJQf.4IJN7E # "1234"
# no annoying audible bell, please
vbell off
# detach on hangup
autodetach on
# don't display the copyright page
startup_message off
# emulate .logout message
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
# advertise hardstatus support to $TERMCAP
# termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
# make the shell in every window a login shell
#shell -$SHELL
# autoaka testing
# shellaka '> |tcsh'
# shellaka '$ |sh'
# set every new windows hardstatus line to somenthing descriptive
# defhstatus "screen: ^En (^Et)"
defscrollback 5000
# don't kill window after the process died
# zombie "^["
zombie kr
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.410 second using v1.00-cache-2.02-grep-82fe00e-cpan-eac11a1d038b )