Skip to content

Instantly share code, notes, and snippets.

View mhubig's full-sized avatar

Markus Hubig mhubig

View GitHub Profile
@mhubig
mhubig / kraken.fish
Last active March 22, 2018 17:13 — forked from BBlackwo/kraken.fish
Open GitKraken from the terminal
## Forked from https://gist.github.com/dersam/0ec781e8fe552521945671870344147b
## Also received help from https://twitter.com/gitkraken/status/691675309725368321
## Iterated upon https://gist.github.com/BBlackwo/b4fec2c0e6d1c6ade21fcbc1511255eb
## Open GitKraken using the current repo directory.
## Note: This code is for fish shell on macOS.
function kraken
set dir $argv[1] (pwd) # use a directory if you pass it in, otherwise pwd
open -a GitKraken --args --path $dir