<commit_before>#!/bin/zsh
# If not running WSL => exit
if grep -iv "microsoft" /proc/version >> /dev/null; then
    return 0
fi

# Windows Aliases
alias wi="win32yank.exe -i"
alias wo="win32yank.exe -o"
alias expl='/mnt/c/Windows/explorer.exe $(wslpath -w $(pwd))'

# Run Powershell from WSL
alias pwsh='/mnt/c/Program\ Files/PowerShell/6/pwsh.exe'
powershell()
{
    if [[ $# -eq 0 ]];then
        pwsh
    else
        winpath="$(wslpath -w "$1")"
        echo "wslpath: $winpath"
        pwsh -noexit -command "cd $winpath"
    fi
}<commit_msg>powershell comment (wsltools.zsh)<commit_after>#!/bin/zsh
# If not running WSL => exit
if grep -iv "microsoft" /proc/version >> /dev/null; then
    return 0
fi

# Windows Aliases
alias wi="win32yank.exe -i"
alias wo="win32yank.exe -o"
alias expl='/mnt/c/Windows/explorer.exe $(wslpath -w $(pwd))'

# Run Powershell from WSL
alias pwsh='/mnt/c/Program\ Files/PowerShell/6/pwsh.exe'
powershell()
{
    if [[ $# -eq 0 ]];then
        pwsh
    else
        winpath="$(wslpath -w "$1")"
        echo "wslpath: $winpath"
        pwsh -noexit -command "cd $winpath"
    fi
}
# pwsh="$(command ls -1 '/mnt/c/Program Files/Powershell2' &> /dev/null && find '/mnt/c/Program Files/Powershell' -iname '*pwsh.exe' |head -n1)"
{'fraction_non_alphanumeric': 0.1699761715647339, 'fraction_numerical': 0.015091342335186657, 'mean_word_length': 2.9622641509433962, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '2181362', 'n_tokens_mistral': 538, 'n_tokens_neox': 494, 'n_words': 125}