<commit_before>from os import environ
from sys import stderr
from updot import ln, mkdir, platform

# import argparse, argh, see
#   https://chase-seibert.github.io/blog/2014/03/21/python-multilevel-argparse.html
# import https://github.com/dbarnett/python-selfcompletion or argcomplete

# global options:
#   what-if
#   stop-on-first

def error(text):
    stderr.write(text)


PROJ                 = 'c:/proj'
APPDATA              = environ["APPDATA"]
SUBLIME_PACKAGE_ROOT = f'{APPDATA}/Sublime Text 3/Packages'

mkdir('~/bin')
mkdir('~/go/bin')

ln('~/dotfiles/config', '~/.config')
ln('~/Common/Private', '~/dotfiles/private')

mkdir('~/.ssh')
ln('~/dotfiles/private/ssh/authorized_keys', '~/.ssh/authorized_keys')

ln('~/.config/tmux/tmux.conf', '~/.tmux.conf') # tmux refuses to support xdg (https://github.com/tmux/tmux/issues/142)
ln('~/.config/pdb/pdbrc.py', '~/.pdbrc.py')    # pdbpp uses fancycompleter which hard codes ~/<configname> and doesn't do xdg

ln(f'{PROJ}/unity-meta', '~/unity-meta')

if platform.POSIX:
    touch('~/.hushlogin')

if platform.TERMUX:
    ln('~/.config/termux', '~/.termux')

if platform.WSL:
    ln('/mnt/c', '/c')

if platform.CYGWIN:
    ln('~/dotfiles/special/cygwin/profile', '~/.profile')
    ln('~/dotfiles/special/cygwin/minttyrc', '~/.minttyrc')
    ln('/cygdrive/c', '/c')

if platform.WINDOWS:
    ln('~/.config/git/config-windows',                 '~/.gitconfig')
    ln('~/.config/omnisharp',                          '~/.omnisharp')
    ln('~/dotfiles/special/vscode/User',              f'{APPDATA}/Code/User')
    ln('~/dotfiles/private/openvpn/config',            '~/OpenVPN/config')

    ln('~/Games/Factorio',                            f'{APPDATA}/Factorio')

    ln('~/Common/_Settings/gimp-2.8',                  '.gimp-2.8')
    ln('~/Common/_Settings/Ssh',                       '.ssh')
    ln('~/Common/_Settings/minttyrc.txt',              '.minttyrc')
    ln('~/Common/Visual Studio 2013',                  'Documents/Visual Studio 2013')
    ln('~/Common/Visual Studio 2015',                  'Documents/Visual Studio 2015')
    ln('~/Common/Visual Studio 2017',                  'Documents/Visual Studio 2017')
    ln('~/Common/WindowsPowerShell',                   'Documents/WindowsPowerShell')

    ln('~/unity-meta/Perforce Jam Language Files',    f'{SUBLIME_PACKAGE_ROOT}/Perforce Jam Language Files')
    ln('~/unity-meta/Unity bindings',                 f'{SUBLIME_PACKAGE_ROOT}/Unity bindings')
<commit_msg>These old VS's are dead to me<commit_after>from os import environ
from sys import stderr
from updot import ln, mkdir, platform

# import argparse, argh, see
#   https://chase-seibert.github.io/blog/2014/03/21/python-multilevel-argparse.html
# import https://github.com/dbarnett/python-selfcompletion or argcomplete

# global options:
#   what-if
#   stop-on-first

def error(text):
    stderr.write(text)


PROJ                 = 'c:/proj'
APPDATA              = environ["APPDATA"]
SUBLIME_PACKAGE_ROOT = f'{APPDATA}/Sublime Text 3/Packages'

mkdir('~/bin')
mkdir('~/go/bin')

ln('~/dotfiles/config', '~/.config')
ln('~/Common/Private', '~/dotfiles/private')

mkdir('~/.ssh')
ln('~/dotfiles/private/ssh/authorized_keys', '~/.ssh/authorized_keys')

ln('~/.config/tmux/tmux.conf', '~/.tmux.conf') # tmux refuses to support xdg (https://github.com/tmux/tmux/issues/142)
ln('~/.config/pdb/pdbrc.py', '~/.pdbrc.py')    # pdbpp uses fancycompleter which hard codes ~/<configname> and doesn't do xdg

ln(f'{PROJ}/unity-meta', '~/unity-meta')

if platform.POSIX:
    touch('~/.hushlogin')

if platform.TERMUX:
    ln('~/.config/termux', '~/.termux')

if platform.WSL:
    ln('/mnt/c', '/c')

if platform.CYGWIN:
    ln('~/dotfiles/special/cygwin/profile', '~/.profile')
    ln('~/dotfiles/special/cygwin/minttyrc', '~/.minttyrc')
    ln('/cygdrive/c', '/c')

if platform.WINDOWS:
    ln('~/.config/git/config-windows',                 '~/.gitconfig')
    ln('~/.config/omnisharp',                          '~/.omnisharp')
    ln('~/dotfiles/special/vscode/User',              f'{APPDATA}/Code/User')
    ln('~/dotfiles/private/openvpn/config',            '~/OpenVPN/config')

    ln('~/Games/Factorio',                            f'{APPDATA}/Factorio')

    ln('~/Common/_Settings/gimp-2.8',                  '.gimp-2.8')
    ln('~/Common/_Settings/Ssh',                       '.ssh')
    ln('~/Common/_Settings/minttyrc.txt',              '.minttyrc')
    ln('~/Common/Visual Studio 2017',                  'Documents/Visual Studio 2017')
    ln('~/Common/WindowsPowerShell',                   'Documents/WindowsPowerShell')

    ln('~/unity-meta/Perforce Jam Language Files',    f'{SUBLIME_PACKAGE_ROOT}/Perforce Jam Language Files')
    ln('~/unity-meta/Unity bindings',                 f'{SUBLIME_PACKAGE_ROOT}/Unity bindings')

{'fraction_non_alphanumeric': 0.1853932584269663, 'fraction_numerical': 0.013316687473990845, 'mean_word_length': 2.6224566691785984, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '7400048', 'n_tokens_mistral': 1834, 'n_tokens_neox': 1649, 'n_words': 272}