A Session Manger Tool
This script was tested on Fedora 23 and Ubuntu 14.04, but is supposed to work on all linux distributions.
- Gnome 3
- Perl
- sudo dnf install 'perl(Term::Menus)'
- sudo cpan Term::Menus
You can add to .bashrc:
nano ~/.bashrc
export PATH="$HOME/Projects/gitmfwlab/mfwlab/public/sessioncommander/:$PATH"
NOTE: Where did you download the repository.
To use BASH Autocomplete for session name, add this to .bashrc:
nano ~/.bashrc
_SessionCommander()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts=$(egrep -v '^#|^ConfVersion|^$' .SessionCommander/SessionCommander.config | awk -F '\t' '{print $1}')
opts="$opts --print_help --print_version --start_session --print_sessions_names --print_session_config --edit_config_nano"
COMPREPLY=( $(compgen -W "$opts" -- ${cur}) )
return 0
}
complete -F _SessionCommander SessionCommander.pl
``
TO-O