Skip to content

Commit

Permalink
Add powershell config
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavsharma committed Nov 28, 2018
1 parent 3fa3b57 commit c2910af
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Microsoft.PowerShell_profile.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Import-Module PSReadLine
Set-PSReadlineOption -EditMode Emacs
Set-PSReadlineKeyHandler -Key Tab -Function Complete
# Clipboard interaction is bound by default in Windows mode, but not Emacs mode.
Set-PSReadlineKeyHandler -Key Shift+Ctrl+C -Function Copy
Set-PSReadlineKeyHandler -Key Ctrl+V -Function Paste

function tensorflowroot {set-location C:/Users/prs/work_projects/tensorflow/tensorflow}
Set-Alias tr tensorflowroot

function emacsshell {emacs -nw -Q $args}
Set-Alias em emacsshell

function mysearch {gci -r $args}
Set-Alias se mysearch

Set-Alias np "C:\Program Files (x86)\Notepad++\notepad++.exe"
Set-Alias re runemacs

function myls {dir | sort LastWriteTime}
Set-Alias l myls

# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}

0 comments on commit c2910af

Please sign in to comment.