Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ion-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
redox-os
ion-plugins
Commits
26282b42
Commit
26282b42
authored
Jul 23, 2019
by
AdminXVII
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Github
parent
fdef3bf2
Pipeline
#5431
passed with stages
in 1 minute and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletion
+42
-1
plugins.md
plugins.md
+1
-1
tools/github.ion
tools/github.ion
+41
-0
No files found.
plugins.md
View file @
26282b42
...
...
@@ -197,7 +197,7 @@ Since Ion does not support autocompletion via plugins, a lot of oh-my-zsh plugin
|--------------------------+--------------------------------|
| git-flow-avh | Not happening |
|--------------------------+--------------------------------|
| github |
Planned
|
| github |
Done
|
|--------------------------+--------------------------------|
| git-hubflow | Done |
|--------------------------+--------------------------------|
...
...
tools/github.ion
0 → 100644
View file @
26282b42
# Set up hub wrapper for git, if it is available; https://github.com/github/hub
if which hub &> /dev/null
alias git = 'hub'
end
fn empty_gh repo:str -- Creates a new repo with a blank README.md in it and pushes it up to GitHub.
mkdir $repo
touch "$repo/README.md"
new_gh $repo
end
fn new_gh repo:str -- Add all non-hidden files to git
set -e
cd $repo
git init
# add all non-dot files
print '.*'"\n"'*~' >> .gitignore
git add [^.]*
git add -f .gitignore
git commit -m 'Initial commit.'
hub create
git push -u origin master
end
fn exist_gh repo:str -- Add an existing repo to github
set -e
cd $repo
hub create
git push -u origin master
end
# Shorten GitHub url, example:
# https://github.com/nvogel/dotzsh > https://git.io/8nU25w
# source: https://github.com/nvogel/dotzsh
# documentation: https://github.com/blog/985-git-io-github-url-shortener
fn git_io url:str -- Generate a short url for a github url
curl -i -s https://git.io -F "url=$url" | grep "Location" | cut -f 2 -d " "
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment