Created
January 6, 2015 02:08
-
-
Save bryder/b777dc45c893832dc2ae to your computer and use it in GitHub Desktop.
Powershell with PSreadline and some ssh-agent stuff - good for git mainly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$a = (Get-Host).PrivateData | |
$a.ErrorForegroundColor = "Yellow" | |
# (new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex | |
import-module PsGet | |
install-module PsUrl | |
install-module PsReadLine | |
Set-PSReadlineOption -EditMode Emacs | |
Set-PSReadlineKeyHandler -Key ctrl+p -function PreviousHistory | |
Set-PSReadlineKeyHandler -Key ctrl+n -function NextHistory | |
Import-Module virtualenvwrapper | |
write-host "Ready to go " | |
new-alias emacs "C:\Program Files (x86)\GNU Emacs 24.1\bin\runemacs.exe" | |
new-alias pycharm "C:\Program Files (x86)\JetBrains\PyCharm 3.4.1\bin\pycharm.exe" | |
$moba_xterm_home="C:/bryder_data/00 MobaXterm Home" | |
. "$moba_xterm_home/ssh-agent-utils.ps1" | |
Add-Sshkey "$moba_xterm_home/.ssh/id_dsa" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment