<commit_before>#!/bin/bash

# Automatically attach to a Screen window associated with the current workspace

workspace="$1"

screen -x -p "$workspace" ||
  $SHELL<commit_msg>Check whether Screen is installed and workspace argument passed before attempting to attach<commit_after>#!/bin/bash

# Automatically attach to a Screen window associated with the current workspace

workspace="$1"

if
  which screen >/dev/null &&
    [[ -n $workspace ]]
then
  screen -x -p "$workspace" ||
    $SHELL
else
  $SHELL
fi
{'fraction_non_alphanumeric': 0.10236220472440945, 'fraction_numerical': 0.003937007874015748, 'mean_word_length': 4.247422680412371, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3982900', 'n_tokens_mistral': 158, 'n_tokens_neox': 153, 'n_words': 57}