<commit_before>if (Get-Module PSReadLine) {
  Set-PSReadLineOption -EditMode Emacs
}

Import-Module posh-git -ErrorAction SilentlyContinue
if (Get-Module posh-git) {
  # TODO: Make '@' blue, if possible. Also switch directory and Git info.
  $GitPromptSettings.DefaultPromptAbbreviateHomeDirectory = $true
  $GitPromptSettings.DefaultPromptPrefix = '${env:USERNAME}@$(hostname) '
  $GitPromptSettings.DefaultPromptSuffix = '`n$(''>'' * ($nestedPromptLevel + 1)) '
}

$solarized = "$PSScriptRoot/Set-SolarizedDarkColorDefaults.ps1"
if (Test-Path $solarized) {
  . $solarized
  # Fish-like colors
  $options.CommandForegroundColor = 'DarkBlue'
  $options.ContinuationPromptForegroundColor = 'Blue'
  $options.DefaultTokenForegroundColor = 'Cyan'
  $options.EmphasisForegroundColor = 'Cyan'
  $options.StringForegroundColor = 'Yellow'
}

Set-Alias alias Set-Alias
alias g git
alias grep Select-String
alias less more
alias zip Compress-Archive
alias unzip Expand-Archive
<commit_msg>Alias g to hub if it's available<commit_after>if (Get-Module PSReadLine) {
  Set-PSReadLineOption -EditMode Emacs
}

Import-Module posh-git -ErrorAction SilentlyContinue
if (Get-Module posh-git) {
  # TODO: Make '@' blue, if possible. Also switch directory and Git info.
  $GitPromptSettings.DefaultPromptAbbreviateHomeDirectory = $true
  $GitPromptSettings.DefaultPromptPrefix = '${env:USERNAME}@$(hostname) '
  $GitPromptSettings.DefaultPromptSuffix = '`n$(''>'' * ($nestedPromptLevel + 1)) '
}

$solarized = "$PSScriptRoot/Set-SolarizedDarkColorDefaults.ps1"
if (Test-Path $solarized) {
  . $solarized
  # Fish-like colors
  $options.CommandForegroundColor = 'DarkBlue'
  $options.ContinuationPromptForegroundColor = 'Blue'
  $options.DefaultTokenForegroundColor = 'Cyan'
  $options.EmphasisForegroundColor = 'Cyan'
  $options.StringForegroundColor = 'Yellow'
}

Set-Alias alias Set-Alias

if (Get-Command -Name hub -ErrorAction SilentlyContinue) {
    alias g hub
} else {
    alias g git
}

alias grep Select-String
alias less more
alias zip Compress-Archive
alias unzip Expand-Archive

{'fraction_non_alphanumeric': 0.11202317720907774, 'fraction_numerical': 0.001931434089811685, 'mean_word_length': 5.317073170731708, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1677848', 'n_tokens_mistral': 711, 'n_tokens_neox': 682, 'n_words': 152}