Skip to content

Instantly share code, notes, and snippets.

@kohnakagawa
Created August 25, 2018 15:45
Show Gist options
  • Save kohnakagawa/7fe424e6d30cc0e15f29a6d6b52cf179 to your computer and use it in GitHub Desktop.
Save kohnakagawa/7fe424e6d30cc0e15f29a6d6b52cf179 to your computer and use it in GitHub Desktop.
C:\Users\<USERNAME>\Documents\WindowsPowerShell に配置するPowerShellの設定ファイル
Import-Module PSReadLine
Set-PSReadlineOption -EditMode Emacs
function touch {
New-Item -type file $args
}
function g {
cd "$(ghq root)\$(ghq list | peco)"
}
function gh {
$url=$(ghq list | peco)
hub browse $($url.Split("/")[1,2] -join "/")
}
@kohnakagawa
Copy link
Author

Requirements:

@kohnakagawa
Copy link
Author

PowerShellのエイリアスについて

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment