<commit_before># startmux

A script that make easy tmux configuration bootstrap of a project

## Add your own custom configuration

To add a custom configuration, it's necessary to create a file with extension .startmux. When loaded, startmux select the right file by asking which one the user want to load.

## Order your windows

Associative arrays, in bash, are not sortable.

## Example

Here an example. Windows will be opened with the order in the list. `first` parameter, is the name of the window. `second` parameter, is the command appended on that window.

    #!/bin/bash
    declare -A combo=()
    combo+=([home]='cd ~')
    combo+=([logs]='cd /var/log')

## Windows order

Associative array, in bash, are not ordered. To customize the order of windows, add another array to configuration like this:

    #!/bin/bash
    echo ""
    echo "You are loading default configuration"
    declare -A combo=()
    combo+=([logs]='cd /var/log; clear; pwd')
    combo+=([home]='cd ~; clear; pwd')
    order=(home logs)

## Execute tmux from everywhere

To make startmux executable from everywhere, add a symbolic link your /usr/local/bin folder

    # cd /usr/local/bin
    # ln -s ~/path/to/sensorario/startmux/startmux .<commit_msg>Improved README file<commit_after># startmux

A script that make easy tmux configuration bootstrap of a project

## Add your own custom configuration

To add a custom configuration, it's necessary to create a file with extension .startmux. When loaded, startmux select the right file by asking which one the user want to load.

## Order your windows

Associative arrays, in bash, are not sortable.

## Example

Here an example. Windows will be opened with the order in the list. `first` parameter, is the name of the window. `second` parameter, is the command appended on that window.

    #!/bin/bash
    declare -A combo=()
    combo+=([home]='cd ~')
    combo+=([logs]='cd /var/log')

## Windows order

Associative array, in bash, are not ordered. To customize the order of windows, add another array to configuration like this:

    #!/bin/bash
    echo ""
    echo "You are loading default configuration"
    declare -A combo=()
    combo+=([logs]='cd /var/log; clear; pwd')
    combo+=([home]='cd ~; clear; pwd')
    order=(home logs)

## Execute tmux from everywhere

To make startmux executable from everywhere, add a symbolic link your /usr/local/bin folder

    # cd /usr/local/bin
    # ln -s ~/path/to/sensorario/startmux/startmux .

## Run command with configuration file

There is also possibility to run startmux with configuration file as parameter

    $ startmux filename.startmux
{'fraction_non_alphanumeric': 0.09563567362428843, 'fraction_numerical': 0.0, 'mean_word_length': 3.640845070422535, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5842938', 'n_tokens_mistral': 765, 'n_tokens_neox': 734, 'n_words': 341}