summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLaoujin <woutervs@hotmail.com>2015-11-27 04:05:53 +0100
committerLaoujin <woutervs@hotmail.com>2015-11-27 04:05:53 +0100
commit3cbcf0e98368d58b708fd945f96d7996386f57ed (patch)
treeb045b3c384fdc2986e835cbaa629159be74fab6d
parent0b7c612c3ed5c82b05bca22bcf3622e37fe55581 (diff)
[PowerShell/en] More usefull snippets and interesting projects
-rw-r--r--powershell.html.markdown19
1 files changed, 18 insertions, 1 deletions
diff --git a/powershell.html.markdown b/powershell.html.markdown
index 6f38c45c..ce9cfa72 100644
--- a/powershell.html.markdown
+++ b/powershell.html.markdown
@@ -278,6 +278,17 @@ Get-ChildItem -Recurse | Unblock-File
# Open Windows Explorer in working directory
ii .
+
+# Any key to exit
+$host.UI.RawUI.ReadKey()
+return
+
+# Create a shortcut
+$WshShell = New-Object -comObject WScript.Shell
+$Shortcut = $WshShell.CreateShortcut($link)
+$Shortcut.TargetPath = $file
+$Shortcut.WorkingDirectory = Split-Path $file
+$Shortcut.Save()
```
@@ -290,12 +301,18 @@ if (-not (Test-Path $Profile)) {
notepad $Profile
}
# More info: `help about_profiles`
+# For a more usefull shell, be sure to check the project PSReadLine below
```
Interesting Projects
-* [Channel9](https://channel9.msdn.com/Search?term=powershell%20pipeline#ch9Search&lang-en=en) PowerShell videos
+* [Channel9](https://channel9.msdn.com/Search?term=powershell%20pipeline#ch9Search&lang-en=en) PowerShell tutorials
+* [PSGet](https://github.com/psget/psget) NuGet for PowerShell
+* [PSReadLine](https://github.com/lzybkr/PSReadLine/) A bash inspired readline implementation for PowerShell (So good that it now ships with Windows10 by default!)
+* [Posh-Git](https://github.com/dahlbyk/posh-git/) Fancy Git Prompt (Recommended!)
* [PSake](https://github.com/psake/psake) Build automation tool
* [Pester](https://github.com/pester/Pester) BDD Testing Framework
+* [Jump-Location](https://github.com/tkellogg/Jump-Location) Powershell `cd` that reads your mind
+* [PowerShell Community Extensions](http://pscx.codeplex.com/) (Dead)
Not covered
* WMI: Windows Management Intrumentation (Get-CimInstance)