<commit_before>#Invoke-BatchFile 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat'

Set-PSReadLineOption -EditMode Vi
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward

# Dracula readline configuration. Requires version 2.0, if you have 1.2 convert to `Set-PSReadlineOption -TokenType`
Set-PSReadlineOption -Color @{
    "Command" = [ConsoleColor]::Green
    "Parameter" = [ConsoleColor]::Gray
    "Operator" = [ConsoleColor]::Magenta
    "Variable" = [ConsoleColor]::White
    "String" = [ConsoleColor]::Yellow
    "Number" = [ConsoleColor]::Blue
    "Type" = [ConsoleColor]::Cyan
    "Comment" = [ConsoleColor]::DarkCyan
}
## Dracula Prompt Configuration
#$GitPromptSettings.DefaultPromptPrefix.Text = "$([char]0x2192) " # arrow unicode symbol
#$GitPromptSettings.DefaultPromptPrefix.ForegroundColor = [ConsoleColor]::Green
#$GitPromptSettings.DefaultPromptPath.ForegroundColor =[ConsoleColor]::Cyan
#$GitPromptSettings.DefaultPromptSuffix.Text = "$([char]0x203A) " # chevron unicode symbol
#$GitPromptSettings.DefaultPromptSuffix.ForegroundColor = [ConsoleColor]::Magenta
# Dracula Git Status Configuration
#$GitPromptSettings.BeforeStatus.ForegroundColor = [ConsoleColor]::Blue
#$GitPromptSettings.BranchColor.ForegroundColor = [ConsoleColor]::Blue
#$GitPromptSettings.AfterStatus.ForegroundColor = [ConsoleColor]::Blue

Set-Alias which get-command
Set-Alias l ls
Set-Alias m jom
Set-Alias make jom
Set-Alias o ii
Set-Alias clear cls

Function c ($path) { Set-Clipboard ((Get-Item $path).FullName) }
Function d { Set-Location -Path ~/dev/md/dotfiles }
Function j { Set-Location -Path ~/dev/phonations/core }
Function cci { Set-Location -Path ~/dev/clone/cci/recipes }
Function hex($file) { hexdump -C $file | more }
Function lmb { lab mr b }
Function glom { git log --oneline --decorate --color master.. $args }
Function grbmi { git rebase master --interactive }
Function grbmia { git rebase master --interactive --autosquash }
Function gcfx($sha) { git commit --fixup $sha }
Function gsuri { git submodule update --recursive --init }
Function ghprb { gh pr view --web }
Function mcd ($path) { md $path;cd $path }
Function qtlog { vi ~/AppData/Local/QtProject/qtlogging.ini }

~/.secret.ps1

Function pong ($message = "pong") {
  python $Env:MATTERMOST_SCRIPT $Env:MATTERMOST_BOT_USER $Env:MATTERMOST_BOT_PASSWORD $Env:MATTERMOST_CHANNEL $message
}

Import-Module git-aliases -DisableNameChecking
Import-Module posh-git

$Env:CONAN_TRACE_FILE = "~/dev/clone/cci/recipes/log.txt"
$Env:CONAN_PRINT_RUN_COMMANDS  = 1
cd ~/dev/phonations<commit_msg>Improve main branch support for glom, grbmi and grbmia<commit_after>#Invoke-BatchFile 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat'

Set-PSReadLineOption -EditMode Vi
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward

# Dracula readline configuration. Requires version 2.0, if you have 1.2 convert to `Set-PSReadlineOption -TokenType`
Set-PSReadlineOption -Color @{
    "Command" = [ConsoleColor]::Green
    "Parameter" = [ConsoleColor]::Gray
    "Operator" = [ConsoleColor]::Magenta
    "Variable" = [ConsoleColor]::White
    "String" = [ConsoleColor]::Yellow
    "Number" = [ConsoleColor]::Blue
    "Type" = [ConsoleColor]::Cyan
    "Comment" = [ConsoleColor]::DarkCyan
}
## Dracula Prompt Configuration
#$GitPromptSettings.DefaultPromptPrefix.Text = "$([char]0x2192) " # arrow unicode symbol
#$GitPromptSettings.DefaultPromptPrefix.ForegroundColor = [ConsoleColor]::Green
#$GitPromptSettings.DefaultPromptPath.ForegroundColor =[ConsoleColor]::Cyan
#$GitPromptSettings.DefaultPromptSuffix.Text = "$([char]0x203A) " # chevron unicode symbol
#$GitPromptSettings.DefaultPromptSuffix.ForegroundColor = [ConsoleColor]::Magenta
# Dracula Git Status Configuration
#$GitPromptSettings.BeforeStatus.ForegroundColor = [ConsoleColor]::Blue
#$GitPromptSettings.BranchColor.ForegroundColor = [ConsoleColor]::Blue
#$GitPromptSettings.AfterStatus.ForegroundColor = [ConsoleColor]::Blue

Set-Alias which get-command
Set-Alias l ls
Set-Alias m jom
Set-Alias make jom
Set-Alias o ii
Set-Alias clear cls

Function c ($path) { Set-Clipboard ((Get-Item $path).FullName) }
Function d { Set-Location -Path ~/dev/md/dotfiles }
Function j { Set-Location -Path ~/dev/phonations/core }
Function cci { Set-Location -Path ~/dev/clone/cci/recipes }
Function hex($file) { hexdump -C $file | more }
Function lmb { lab mr b }
Function ghprb { gh pr view --web }
Function mcd ($path) { md $path;cd $path }
Function qtlog { vi ~/AppData/Local/QtProject/qtlogging.ini }

~/.secret.ps1

Function pong ($message = "pong") {
  python $Env:MATTERMOST_SCRIPT $Env:MATTERMOST_BOT_USER $Env:MATTERMOST_BOT_PASSWORD $Env:MATTERMOST_CHANNEL $message
}

Import-Module git-aliases -DisableNameChecking
Import-Module posh-git

Function glom {
  $MainBranch = Get-Git-MainBranch
  git log --oneline --decorate --color "${MainBranch}.." $args
}
Function grbmi {
  $MainBranch = Get-Git-MainBranch
  git rebase $MainBranch --interactive
}
Function grbmia {
  $MainBranch = Get-Git-MainBranch
  git rebase $MainBranch --interactive --autosquash
}
Function gcfx($sha) { git commit --fixup $sha }
Function gsuri { git submodule update --recursive --init }

$Env:CONAN_TRACE_FILE = "~/dev/clone/cci/recipes/log.txt"
$Env:CONAN_PRINT_RUN_COMMANDS  = 1
cd ~/dev/phonations
{'fraction_non_alphanumeric': 0.12235543018335684, 'fraction_numerical': 0.008815232722143865, 'mean_word_length': 5.43927355278093, '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': '733576', 'n_tokens_mistral': 1946, 'n_tokens_neox': 1891, 'n_words': 429}