LoginSignup
4

More than 5 years have passed since last update.

MacOSXにPowerShellをインストールしてみる

Posted at

作業メモ。

環境

  • MacOSX10.11.6
  • PowerShell 6.0.0-alpha

やってみる

基本的に以下のREADMEに従えば良い。

PowerShell/PowerShell

# pkgファイルをダウンロード
$wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.10/powershell-6.0.0-alpha.10.pkg

# pkgをインストール
$sudo installer -pkg powershell-6.0.0-alpha.10.pkg -target /
installer: Package name is powershell-6.0.0-alpha.10
installer: Installing at base path /
installer: The install was successful.

# powershellを起動
$powershell
PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

# PowerShellのバージョンを確認
PS /Users/xxxx> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.0.0-alpha
PSEdition                      Core
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   3.0.0.0
GitCommitId                    v6.0.0-alpha.10
CLRVersion
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

簡単でした。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4