瞎几把记一点Windows小知识
scoop
https://github.com/lukesampson/scoop
windows 的命令行安装程序管理工具
scoop-dzxs
我的bucket https://github.com/dzxs/scoop-dzxs
安装 scoop 到自定义目录
[environment]::setEnvironmentVariable('SCOOP','D:\Applications\Scoop','User') $env:SCOOP='D:\Applications\Scoop' iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1')
|
添加scoop-dzxs
scoop bucket add dzxs https://github.com/dzxs/scoop-dzxs scoop bucket list
|
记一下
scoop cache rm * scoop cleanup *
|
powershell
Invoke-WebRequest 下载文件
$ Invoke-WebRequest -Uri https://gist.githubusercontent.com/dzxs/f78262f38190cc499540f12d5c245822/raw/37abe4b11d08590282b16aae55096bdbeae0faf5/OpenWithSublimeText3.bat -OutFile OpenWithSublimeText3.bat
$ scoop install sudo Installing 'sudo' (0.2017.03.24) [64bit] sudo.ps1 (2.0 KB) [===========================================================================================] 100% Checking hash of sudo.ps1 ... ok. Linking D:\apps\Scoop\apps\sudo\current => D:\apps\Scoop\apps\sudo\0.2017.03.24 Creating shim for 'sudo'. 'sudo' (0.2017.03.24) was installed successfully!
$ sudo .\OpenWithSublimeText3.bat 操作成功完成。 操作成功完成。 操作成功完成。 操作成功完成。 操作成功完成。 操作成功完成。 请按任意键继续. . .
|
这个下载的文件可以将sublime-text添加到右键