diff --git a/PSFzf.Functions.ps1 b/PSFzf.Functions.ps1 index 6f0190e..4c23f28 100644 --- a/PSFzf.Functions.ps1 +++ b/PSFzf.Functions.ps1 @@ -349,7 +349,7 @@ function Invoke-PsFzfRipgrep() { prompt = 'ripgrep> ' delimiter = ':' header = '? CTRL-R (Ripgrep mode) ? CTRL -F (fzf mode) ?' - preview = 'bat --color=always {1} --highlight-line {2}' + preview = 'bat --no-config --color=always {1} --highlight-line {2}' 'preview-window' = 'up,60%,border-bottom,+{2}+3/3,~3' } diff --git a/helpers/PsFzfTabExpansion-Parameter.ps1 b/helpers/PsFzfTabExpansion-Parameter.ps1 index 4f77e40..cd3d50a 100644 --- a/helpers/PsFzfTabExpansion-Parameter.ps1 +++ b/helpers/PsFzfTabExpansion-Parameter.ps1 @@ -18,7 +18,7 @@ if ([System.Management.Automation.Cmdlet]::CommonParameters.Contains($parameter) } else { if ($ansiCompatible -and $(Get-Command bat -ErrorAction Ignore)) { - Get-Help -Name $Command -Parameter $parameter | bat --language=markdown --color always --style=plain + Get-Help -Name $Command -Parameter $parameter | bat --no-config --language=markdown --color always --style=plain } else { Get-Help -Name $Command -Parameter $parameter diff --git a/helpers/PsFzfTabExpansion-Preview.ps1 b/helpers/PsFzfTabExpansion-Preview.ps1 index f6fa91a..b9137dd 100644 --- a/helpers/PsFzfTabExpansion-Preview.ps1 +++ b/helpers/PsFzfTabExpansion-Preview.ps1 @@ -23,7 +23,7 @@ if (Test-Path $path -PathType Container) { Write-Output "" # extra separator before git status Push-Location $path if ($ansiCompatible -and $(Get-Command bat -ErrorAction Ignore)) { - git log -1 2> $null | bat "--style=changes" --color always + git log -1 2> $null | bat --no-config "--style=changes" --color always } else { git log -1 2> $null @@ -35,7 +35,7 @@ if (Test-Path $path -PathType Container) { elseif (Test-Path $path -PathType leaf) { # use bat (https://github.com/sharkdp/bat) if it's available: if ($ansiCompatible -and $(Get-Command bat -ErrorAction Ignore)) { - bat "--style=numbers,changes" --color always $path + bat --no-config "--style=numbers,changes" --color always $path } else { Get-Content $path @@ -46,7 +46,7 @@ elseif (($cmdResults = Get-Command $Item -ErrorAction Ignore)) { if ($cmdResults) { if ($cmdResults.CommandType -ne 'Application') { if ($ansiCompatible -and $(Get-Command bat -ErrorAction Ignore)) { - Get-Help $Item | bat --language=markdown --color always --style=plain + Get-Help $Item | bat --no-config --language=markdown --color always --style=plain } else {