* Pagerをlessにする [#n6179f14]

** PSCXをインストール [#y2518307]
- PSCX(PowerShell Community Extension)をインストールする。

** Pagerの変更の有効化・無効化 [#j9e5fcfb]
C:\Users\taro\Documents\WindowsPowerShell以下のPscx.UserPreferences.ps1にて以下のように$trueもしくは$falseに設定をする。
 @{
   PageHelpUsingLess = $true
 }

** lessの設定 [#a32b30af]
C:\Users\taro\Documents\WindowsPowerShell以下のMicrosoft.PowerShell_profile.ps1にて以下のように設定をする。詳しくはUNIX系のlessのドキュメントを参照の事。
 $Env:LESSHISTFILE = $Env:AppData + "\PowerShell\_lesshst"
 $Env:LESS="-q"
 
 Import-Module Pscx -arg ~\Documents\WindowsPowerShell\Pscx.UserPreferences.ps1 

*** man of less [#l3b22a58]
http://linuxjm.sourceforge.jp/html/GNU_less/man1/less.1.html

** lessの設置場所 [#ma7a56f1]
 C:\Program Files (x86)\PowerShell Community Extensions\Pscx3\Pscx\Apps\less.exe

** 参考 [#ac78f69c]
http://www.lincolnblog.net/PowerShell-Community-Extensions-PSCX.ashx


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS