mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-10-16 11:40:46 +00:00
Compare commits
4 commits
f4254f059d
...
71cb72524c
Author | SHA1 | Date | |
---|---|---|---|
|
71cb72524c | ||
|
367e9381df | ||
|
ce84456118 | ||
|
84e39885c4 |
3 changed files with 48 additions and 1 deletions
|
@ -163,7 +163,7 @@ function git_current_branch() {
|
|||
}
|
||||
|
||||
# Outputs the name of the previously checked out branch
|
||||
# Usage example: git pull origin $(git_current_branch)
|
||||
# Usage example: git pull origin $(git_previous_branch)
|
||||
# rev-parse --symbolic-full-name @{-1} only prints if it is a branch
|
||||
function git_previous_branch() {
|
||||
local ref
|
||||
|
|
24
plugins/git-town/README.md
Normal file
24
plugins/git-town/README.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Git-Town plugin
|
||||
|
||||
This plugin adds completion and aliases for the `git-town` command. More information
|
||||
at https://www.git-town.com.
|
||||
|
||||
Enable git-town plugin in your zshrc file:
|
||||
```
|
||||
plugins=(... git-town)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
|
||||
More information about `git-town` commands:
|
||||
https://github.com/Originate/git-town#commands
|
||||
|
||||
| Alias | Command | Description |
|
||||
|---------|----------------------------|----------------------------------------|
|
||||
| `gt` | `git town` | Git-Town command |
|
||||
| `gtab` | `git town abort` | Aborts the last run git-town command |
|
||||
| `gtc` | `git town continue` | Restarts last after resolved conflict |
|
||||
| `gth` | `git town hack` | New feature branch off main branch |
|
||||
| `gtsy` | `git town sync` | Updates current branch w/ all changes |
|
||||
| `gtnpr` | `git town new-pull-request`| Create a new pull request |
|
||||
| `gtsh` | `git town ship` | Delivers feature branch and removes it |
|
23
plugins/git-town/git-town.plugin.zsh
Normal file
23
plugins/git-town/git-town.plugin.zsh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!zsh
|
||||
#
|
||||
# Installation
|
||||
# ------------
|
||||
#
|
||||
# WIP
|
||||
|
||||
#Alias
|
||||
| `gt` | `git town` | Git-Town command |
|
||||
| `gtab` | `git town abort` | Aborts the last run git-town command |
|
||||
| `gtc` | `git town continue` | Restarts last after resolved conflict |
|
||||
| `gth` | `git town hack` | New feature branch off main branch |
|
||||
| `gtsy` | `git town sync` | Updates current branch w/ all changes |
|
||||
| `gtnpr` | `git town new-pull-request`| Create a new pull request |
|
||||
| `gtsh` | `git town ship` | Delivers feature branch and removes it |
|
||||
|
||||
alias gt='git town'
|
||||
alias gta='git town abort'
|
||||
alias gtc='git town continue'
|
||||
alias gth='git town hack'
|
||||
alias gtsy='git town sync'
|
||||
alias gtnpr='git town new-pull-request'
|
||||
alias gtsh='git town ship'
|
Loading…
Reference in a new issue