<commit_before>#!/usr/bin/env bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

source $DIR/../logging.sh
e_header "Post install for OSX"

osascript $DIR/remap-capslock-to-ctrl.scpt
if [[ $? -eq 0 ]]; then
    e_success "Remap CapsLock to CTRL"
else
    e_warn "Failed to remap CapsLock to CTRL in System Preferences."
fi

e_info "Post install for OSX done!"<commit_msg>Compile Command-T in post install.<commit_after>#!/usr/bin/env bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

source $DIR/../logging.sh
e_header "Post install for OSX"

osascript $DIR/remap-capslock-to-ctrl.scpt
if [[ $? -eq 0 ]]; then
    e_success "Remap CapsLock to CTRL"
else
    e_warn "Failed to remap CapsLock to CTRL in System Preferences."
fi

# Command-T

cd $DIR/../vim/bundle/Command-T/ruby/command-t

# Configure Command-T

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
if [[ $? -eq 0 ]]; then
    e_success "Command-T: ruby extconf.rb"
else
    e_warn "Command-T: ruby extconf.rb failed"
fi

# Make Command-T

make
if [[ $? -eq 0 ]]; then
    e_success "Command-T: ruby extconf.rb"
else
    e_warn "Command-T: ruby extconf.rb failed"
fi


e_info "Post install for OSX done!"
{'fraction_non_alphanumeric': 0.15, 'fraction_numerical': 0.006557377049180328, 'mean_word_length': 3.5902255639097747, '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': '2459691', 'n_tokens_mistral': 492, 'n_tokens_neox': 462, 'n_words': 129}