mirror of https://github.com/ohmyzsh/ohmyzsh.git
Compare commits
4 Commits
ed6b5f2221
...
e93547a9fa
Author | SHA1 | Date |
---|---|---|
|
e93547a9fa | |
|
5c17bcd21f | |
|
ce84456118 | |
|
84e39885c4 |
|
@ -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 |
|
|
@ -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'
|
|
@ -52,6 +52,7 @@ Available search contexts are:
|
||||||
| `gopkg` | `https://pkg.go.dev/search?m=package&q=` |
|
| `gopkg` | `https://pkg.go.dev/search?m=package&q=` |
|
||||||
| `chatgpt` | `https://chatgpt.com/?q=` |
|
| `chatgpt` | `https://chatgpt.com/?q=` |
|
||||||
| `reddit` | `https://www.reddit.com/search/?q=` |
|
| `reddit` | `https://www.reddit.com/search/?q=` |
|
||||||
|
| `ppai` | `https://www.perplexity.ai/search/new?q=` |
|
||||||
|
|
||||||
Also there are aliases for bang-searching DuckDuckGo:
|
Also there are aliases for bang-searching DuckDuckGo:
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ function web_search() {
|
||||||
gopkg "https://pkg.go.dev/search?m=package&q="
|
gopkg "https://pkg.go.dev/search?m=package&q="
|
||||||
chatgpt "https://chatgpt.com/?q="
|
chatgpt "https://chatgpt.com/?q="
|
||||||
reddit "https://www.reddit.com/search/?q="
|
reddit "https://www.reddit.com/search/?q="
|
||||||
|
ppai "https://www.perplexity.ai/search/new?q="
|
||||||
)
|
)
|
||||||
|
|
||||||
# check whether the search engine is supported
|
# check whether the search engine is supported
|
||||||
|
@ -87,6 +88,7 @@ alias packagist='web_search packagist'
|
||||||
alias gopkg='web_search gopkg'
|
alias gopkg='web_search gopkg'
|
||||||
alias chatgpt='web_search chatgpt'
|
alias chatgpt='web_search chatgpt'
|
||||||
alias reddit='web_search reddit'
|
alias reddit='web_search reddit'
|
||||||
|
alias ppai='web_search ppai'
|
||||||
|
|
||||||
#add your own !bang searches here
|
#add your own !bang searches here
|
||||||
alias wiki='web_search duckduckgo \!w'
|
alias wiki='web_search duckduckgo \!w'
|
||||||
|
|
Loading…
Reference in New Issue