Skip to content

Does Gittyup support Windows's LongPathsEnabled? #791

Closed Answered by RokeJulianLockhart
RokeJulianLockhart asked this question in Q&A
Discussion options

You must be logged in to vote

#791 (comment)

@RokeJulianLockhart, it does not:

  1. #!/usr/bin/env pwsh
    
    # Prerequisites
    # -------------
    
    	# ~~~pwsh
    	# #Requires -PSEdition 'Core'
    	# #Requires -Version 7.5.0
    	# ~~~
    
    # Reinitialiser
    # -------------
    
    	If ([OperatingSystem]::IsWindows() -Eq $True) {
    		New-ItemProperty `
    			-Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' `
    			-Name 'LongPathsEnabled' `
    			-Value 1 `
    			-PropertyType 'DWORD' `
    			-Force
    				# [^1]
    	}
    
    # Bibliography
    # -------------
    
    # [^1]: Revision (no date) Super User. Available at: [`superuser.com/revisions/1849905/7`](https://superuser.com/revisions/1849905/7#:~:text=New%2DItemProperty%20%2DPath%20%22HKLM:%5CSYSTEM%5CCurrentControlSet%5CContro…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RokeJulianLockhart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant