mirror of https://github.com/ohmyzsh/ohmyzsh.git
Compare commits
3 Commits
b67b89e734
...
50eba1ed40
Author | SHA1 | Date |
---|---|---|
|
50eba1ed40 | |
|
5c17bcd21f | |
|
f25edf653f |
|
@ -34,11 +34,14 @@ if [[ "$TERM" == screen* ]]; then
|
||||||
# tell GNU screen what the tab window title ($1) and the hardstatus($2) should be
|
# tell GNU screen what the tab window title ($1) and the hardstatus($2) should be
|
||||||
function screen_set()
|
function screen_set()
|
||||||
{
|
{
|
||||||
# set the tab window title (%t) for screen
|
|
||||||
print -nR $'\033k'$1$'\033'\\\
|
|
||||||
|
|
||||||
# set hardstatus of tab window (%h) for screen
|
# set hardstatus of tab window (%h) for screen
|
||||||
print -nR $'\033]0;'$2$'\a'
|
print -nR $'\033]0;'$2$'\a'
|
||||||
|
|
||||||
|
if [[ "$DISABLE_AUTO_TITLE" == true ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
# set the tab window title (%t) for screen
|
||||||
|
print -nR $'\033k'$1$'\033'\\\
|
||||||
}
|
}
|
||||||
# called by zsh before executing a command
|
# called by zsh before executing a command
|
||||||
function preexec()
|
function preexec()
|
||||||
|
|
|
@ -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