Skip to content

Commit

Permalink
fix: init mcfly last to avoid keybind override
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdaclan committed May 14, 2024
1 parent 04718b8 commit aa8272e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions toolboxes/powershell-toolbox/profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ oh-my-posh init pwsh --config 'https://raw.githubusercontent.com/JanDeDobbeleer/
# Zoxide
Invoke-Expression (& { (zoxide init powershell | Out-String) })

Check warning on line 5 in toolboxes/powershell-toolbox/profile.ps1

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

toolboxes/powershell-toolbox/profile.ps1#L5

Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead.

# McFly
Invoke-Expression -Command $(mcfly init powershell | Out-String)
# $env:MCFLY_LIGHT = "TRUE"

# PSReadLine
if ((Get-InstalledModule `

Check warning on line 8 in toolboxes/powershell-toolbox/profile.ps1

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

toolboxes/powershell-toolbox/profile.ps1#L8

$null should be on the left side of equality comparisons.
-Name "PSReadLine" `
Expand Down Expand Up @@ -36,6 +32,10 @@ Set-PSReadLineOption -EditMode Windows
# Set shortcuts to begin fzf searching
Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+f'

# McFly
Invoke-Expression -Command $(mcfly init powershell | Out-String)

Check warning on line 36 in toolboxes/powershell-toolbox/profile.ps1

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

toolboxes/powershell-toolbox/profile.ps1#L36

Invoke-Expression is used. Please remove Invoke-Expression from script and find other options instead.
# $env:MCFLY_LIGHT = "TRUE"

# PowerShell parameter completion shim for the dotnet CLI
Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock {
param($commandName, $wordToComplete, $cursorPosition)
Expand Down

0 comments on commit aa8272e

Please sign in to comment.