diff --git a/win/play-by-mpv-as-bluray.reg b/win/play-by-mpv-as-bluray.reg new file mode 100644 index 0000000..77c20db Binary files /dev/null and b/win/play-by-mpv-as-bluray.reg differ diff --git a/win/profile.ps1 b/win/profile.ps1 index 301614d..642c28b 100644 --- a/win/profile.ps1 +++ b/win/profile.ps1 @@ -46,4 +46,18 @@ function d { function vsbuild { Import-Module "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll" Enter-VsDevShell 56e7bf1c +} + +function ssh-copy-id { + [Cmdletbinding()] + param ( + [Parameter()] + [String] + $IdentityFile="~/.ssh/id_rsa.pub", + [Parameter(Mandatory=$true, Position=0)] + [String] + $UserHost + ) + + Get-Content $IdentityFile | ssh $UserHost "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" } \ No newline at end of file