Skip to content

Instantly share code, notes, and snippets.

@xmeng1
Forked from BBlackwo/kraken.fish
Created July 29, 2019 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xmeng1/49387de0e3a5a959a48b58364faad830 to your computer and use it in GitHub Desktop.
Save xmeng1/49387de0e3a5a959a48b58364faad830 to your computer and use it in GitHub Desktop.
Open GitKraken from the terminal
## Forked from https://gist.github.com/dersam/0ec781e8fe552521945671870344147b
## Also received help from https://twitter.com/gitkraken/status/691675309725368321
## Open GitKraken using the current repo directory.
## This code is for fish shell. The same thing can be done in bash
## by creating an alias with the command below.
## `1>/dev/null` directs logs from the terminal
## `&` allows use of the same terminal instance to do other things
## Note: If you're not using OSX, the path is definitely different.
function kraken
set dir $argv[1] (pwd) # use a directory if you pass it in, otherwise cwd
/Applications/GitKraken.app/Contents/MacOS/GitKraken -p $dir 1>/dev/null &
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