Compare commits
No commits in common. "426aba161e1e44150bdd14e67ad003d846daf857" and "44098ee021b941732e6f276f82669e497cf23044" have entirely different histories.
426aba161e
...
44098ee021
10
profile.ps1
10
profile.ps1
@ -67,8 +67,6 @@ Set-PSReadLineKeyHandler -Chord "Ctrl+o" -Function ForwardWord
|
|||||||
# Change cursor shape based on what Vi mode the line editor is in.
|
# Change cursor shape based on what Vi mode the line editor is in.
|
||||||
# Tested and works with PowerShell 5.1
|
# Tested and works with PowerShell 5.1
|
||||||
# NOTE: Requires: Install-Module PsReadline -Scope CurrentUser -Force
|
# NOTE: Requires: Install-Module PsReadline -Scope CurrentUser -Force
|
||||||
# TODO: This doesn't handle all cases well. For example when exiting terminal
|
|
||||||
# nvim in a PowerShell session the cursor is a block while in insert mode.
|
|
||||||
function OnViModeChange {
|
function OnViModeChange {
|
||||||
if ($args[0] -eq 'Command') {
|
if ($args[0] -eq 'Command') {
|
||||||
# Set the cursor to non-blinking block.
|
# Set the cursor to non-blinking block.
|
||||||
@ -85,11 +83,3 @@ Write-Host -NoNewLine "$([char]0x1b)[6 q"
|
|||||||
# Remove these aliases to PowerShell builtins which clobber the actaul exes.
|
# Remove these aliases to PowerShell builtins which clobber the actaul exes.
|
||||||
Remove-Item alias:curl
|
Remove-Item alias:curl
|
||||||
Remove-Item alias:wget
|
Remove-Item alias:wget
|
||||||
|
|
||||||
# Set environment variables
|
|
||||||
# TODO: Wrap Enter-VsDevShell to also set these?
|
|
||||||
if ((Get-Command cmake.exe -ErrorAction SilentlyContinue).Source) {
|
|
||||||
$env:CMAKE_GENERATOR = 'Ninja'
|
|
||||||
$env:CMAKE_C_COMPILER_LAUNCHER = 'cmake.exe'
|
|
||||||
$env:CMAKE_CXX_COMPILER_LAUNCHER = 'cmake.exe'
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user