-
-
Save mhubig/4ccff63a92d6dcd2042323cdd228cce2 to your computer and use it in GitHub Desktop.
Open GitKraken from the terminal
This file contains 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
## 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 | |
end | |
## Now you can simply run `kraken` from your git repo directory. | |
## Optionally specify the directory of your git repo as the first parameter. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment