git clone
wrapper. Clones a repository, cds into it, and opens it in $EDITOR|$GUI_EDITOR.
cloen
git clone
wrapper. Clones a repository, cds into it, and opens it in $EDITOR
|$GUI_EDITOR
.
Set GITHUB_USERNAME
environment variable in your .bashrc, .zshrc or equivalent.
Example, export GITHUB_USERNAME="username"
.
Install
npm
--- ------- ----- --------
Manual
Take bin/cloen
binary and put it somewhere that's in your $PATH
.
Synopsis
- ----- --------- -------------------------------------------
Options
-n
Don't use full name. Default is on. Normally, repositories clone into their
repository name with <author>--<repo-name>
format. Like $ cloen kutsan/dotfiles
clones into kutsan--dotfiles
directory. If this option specified, it clones into
dotfiles
folder without dashes.
-o
Open editor, after clone finished. Default is off. If $GUI_EDITOR
or $EDITOR
globally
specified, then repository will open in it, as $GUI_EDITOR
primacy. Otherwise, vim
will be used as default.
-e <editor>
Open with selected editor, after clone finished. No need extra -o
flag. Note that,
editor executable must be under your $PATH
and it must accept directory with its
first argument.
-h --help
Show help screen.
Examples
- ----- ----------- -- --- ----- ------------------------------------------------ -----------------------
- ----- -- ---------------------- -- --- ----- ----------------------------------------- ----------------------- -- -- ----------------------- -- ------- -
- ----- ----------------------------------------- --- ------- ----- -- --- ----- ----------------------------------------- -----------------------
- ----- --- ----- ---------------------- -- --- ----- ----------------------------------------- ----------- -- -- ----------- -- ----- -
HomePage
https://github.com/kutsan/cloen#readme
Repository
git+https://github.com/kutsan/cloen.git
来源:JavaScript中文网 ,转载请联系管理员! 本文地址:https://www.javascriptcn.com/post/60057c2d81e8991b448ebbb7