Skip to main content

Microsoft.PowerShell_profile

Microsoft.PowerShell_profile.ps1

文件目录:

start $PROFILE
$PSDefaultParameterValues['Out-File:Encoding'] = 'ascii'
[System.Console]::OutputEncoding=[System.Text.Encoding]::GetEncoding(65001)

function hongqi { ssh hongqi@49.234.229.193 -p 4523 }
function cps-server { ssh cps@42.192.78.8 -p 4523 }
function cps-server-upload($local_path) { scp -P 4523 $local_path cps@42.192.78.8:/tmp }
function cps-ce2 {
cd ~/.ssh/
ssh -i ec2.pem centos@44.202.55.205
}
function npm-g($packageName){
npm install -g $packageName --registry=https://registry.npm.taobao.org
}

function test {echo $t}