1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-03-05 08:32:49 +08:00

3715 Commits

Author SHA1 Message Date
hqingyi
e47a8e2321
feat(plugins): add aliases cheatsheet plugin ()
* add: explore alias quickly with aliases plugin.

* change: add compatibility with python2 & python3.

- add compatibility.
- add termcolor.py.
- remove aliass(search), just use acs.
- detect python.
2021-06-11 19:45:05 -07:00
Nuno Goncalves
a206271460
ssh-agent: improvements ()
* ssh-agent: lock this script with a mkdir style mutex

This script is a kind of singleton pattern and is not reentrant.
If several shells are oppened in a fast sequence, then several
independent ssh-agents would be created, which is not acceptable.
A mutex is required.

Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>

* ssh-agent: only start agent if .ssh dir exists

To use the same profile system-wide, it might happen
that the .ssh directory does not exist
(typically $HOME/.ssh/). This would trigger a error.

Creating the directory would be a option, but it
usually will not make sense to do so because it means
the user doesn't have ssh keys or config.

Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>

* ssh-agent: adds lazy option to disable key loading on start

Option is documented on updated README.md

Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>

* ssh-agent: simplify agent-forwarding checking

Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>

Co-authored-by: Robby Russell <robby@planetargon.com>
2021-06-11 19:03:25 -07:00
Roc
02ce2c4a2f
add python alias () 2021-06-11 18:50:29 -07:00
Corey Hinkle
706b2f3765
feat(extract): add support for .ear files ()
Co-authored-by: Corey Hinkle <corey.hinkle@five9.com>
2021-05-28 11:27:16 +02:00
Gustavo J. Acosta
c95b4a393a
chore(chucknorris): fix typo () 2021-05-28 11:19:28 +02:00
Marc Cornellà
308b2314f8
fix(dirhistory): fix ALT+Left/Right key bindings for iTerm2 () 2021-05-28 10:47:02 +02:00
rhuitl
7ab15bee03
feat(dirhistory): add ALT+UP/DOWN key bindings for iTerm2 () 2021-05-21 22:00:58 +02:00
Marc Cornellà
1bda62dffa
feat(shrink-path): add ability to toggle off path shrinking () 2021-05-21 21:57:34 +02:00
Babak K. Shandiz
d646884add
feat(git): add aliases gcas and gcasm for commit with sign-off () 2021-05-03 17:35:13 +02:00
Ben Goldberg
4e8ffe88d4
fix(cargo): complete flags for default cargo aliases ()
By default, cargo provides alias for some commonly used functions. This patch
makes it that those alias will complete the same as their full commands.

Default alias:
b -> build
c -> check
t -> test
r -> run

Since cargo allows users to define custom alias it would be nice if
oh-my-zsh automatically detected those and preformed completions as such
but that would be a much more complex patch.
2021-05-03 16:59:45 +02:00
sevendials
f4de8c5b3a
fix(command-not-found): remove invalid argument for PackageKit ()
`pk-command-not-found` doesn't accept `--` as an argument. This is what happens when `--` is the first argument:

```
$  gem
zsh: --: command not found...
```
2021-05-03 16:49:41 +02:00
kalle (jag)
70ab2928a5
feat(plugins): add gh plugin for GitHub CLI () 2021-05-03 16:35:28 +02:00
Carlo Sala
63a7422d8d
fix(deno): actually load deno completion () 2021-04-26 11:54:53 +02:00
Eric Rodrigues Pires
0655241fa6
fix(kubectl): use --current flag in kcn alias () 2021-04-25 19:56:59 +02:00
Carlo Sala
6cc12e031e
feat(plugins): add plugin for deno ()
Co-authored-by: Kapil Pau <kapilpau@hotmail.com>
Co-authored-by: CallMeLaNN <CallMeLaNN@users.noreply.github.com>
2021-04-25 19:14:05 +02:00
Sherwin Heydarbeygi
7ed8888c5b
feat(npm): add aliases for npm search and npm info () 2021-04-25 19:08:51 +02:00
Petr Rajtslegr
32532c149a
feat(npm): add alias for npm update () 2021-04-25 19:07:25 +02:00
Mauro Porras
1cc15ca3c2
feat(npm): add alias for npm i -f ()
As documented in the README, `npm i -f` forces npm to install the specified packages from a remote
package registry, even if local copies exist on disk caches.
2021-04-25 19:02:39 +02:00
Ian G Canino
48a3c2f32d
feat(fzf): look in XDG compliant location () 2021-04-23 20:28:42 +02:00
Wolfgang Ladermann
1916a31153
feat(systemadmin): add IPv6 info to geteip command () 2021-04-23 16:23:26 +02:00
Chuck
e9f805a3ca
docs(rails): reflect changes to aliases () 2021-04-11 16:20:11 +02:00
Mario A
6ae78695ef
feat(command-not-found): add support for Termux () 2021-04-09 21:42:11 +02:00
Marc Cornellà
b54a6dab9c
refactor(command-not-found): clean up and reorganize logic 2021-04-09 21:22:25 +02:00
Daniel Wang
8b55fb3b60
feat(command-not-found): add support for Homebrew on Apple M1 () 2021-04-09 21:22:24 +02:00
Jeff M. Hubbard
9f8801bea6
feat(archlinux)!: remove deprecated commands aur and abs ()
BREAKING CHANGE: the various update aliases will no longer run `abs` and `aur`, which are either
deprecated or nonexistent. See https://archlinux.org/news/deprecation-of-abs/ for more.
2021-04-09 20:48:24 +02:00
ilter
3f50482674
feat(react-native): add aliases for iPhone 12 () 2021-04-07 19:53:48 +02:00
ratijas
b94bdf8927
feat(archlinux): add support for aura AUR helper () 2021-04-06 14:51:40 +02:00
Septs
2e487b187e
feat(shell-proxy): enable unexported DEFAULT_PROXY setting () 2021-04-06 14:49:03 +02:00
ratijas
790f185e0f
refactor(archlinux): fix name & scripts; reorder aliases ()
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2021-04-06 12:28:22 +02:00
Stéphane Caron
2d40b562e5
fix(dirhistory): make sure to call built-in zle widgets ()
Without this patch, if the called zle widgets have been redefined this plugin might come into
conflict. Related: .
2021-04-01 00:35:28 +02:00
Marc Cornellà
2b1d412279
fix(git): add push or save to gstu alias ()
Fixes 
2021-03-31 11:25:26 +02:00
Marc Cornellà
6e56784179
fix(virtualenv): allow empty prefix/suffix in prompt function ()
Fixes 
2021-03-28 15:01:39 +02:00
Luiz Pericolo
d8b3e115e9
feat(plugins): add hitchhiker plugin () 2021-03-27 22:25:22 +01:00
Marc Cornellà
02d07f3e3d
fix: use $USERNAME guaranteed to always be defined in zsh
Fixes 
2021-03-25 12:08:00 +01:00
CrispyConductor
3f34ce4da4
fix(vi-mode): fix keymap indicator on zle-line-finish ()
* Update VI_KEYMAP on zle-line-finish.  Fixes next prompt draw.

* Also fix vi-mode prompt redraw in case previous prompt was canceled

* Do not redraw fix prompt if VI_MODE_RESET_PROMPT_ON_MODE_CHANGE is unset

* Use a local variable instead of global in function
2021-03-15 23:32:49 +01:00
wahjava
e5d206c8c8
fix(fossil): PROMPT and RPROMPT are no longer exported ()
Fixes 
2021-03-15 23:27:57 +01:00
Will Boyce
0e232d4853
feat(ssh-agent): add ssh-add-args setting ()
* ssh-agent: add `:omz:plugins:ssh-agent ssh_add_args` option

* Clean up and document extra setting

* Document valid ssh-add arguments

Co-authored-by: Marc Cornellà <hello@mcornella.com>
2021-03-15 22:51:33 +01:00
Dario Vladović
90bdb8a156
feat(fzf): add support for Termux package () 2021-03-15 22:34:47 +01:00
Piotr Rogoża
9d556cd545
fix(emotty): fix bad assignment error () 2021-03-15 22:27:00 +01:00
John Delgado
040aadf7c4
feat(git): add grbo alias for git rebase --onto () 2021-03-15 20:06:01 +01:00
Vlad Korolev
0ab87c26c1
fix(terraform): use faster method to get workspace ()
Also add tf_prompt_info to the list of prompt functions so theme writers are aware of it
2021-03-08 10:46:42 +01:00
Gustavo Bazan
9a9f383192
feat: add mongocli plugin () 2021-02-20 22:29:54 -08:00
Vikas Raj
27bf831843
[docker-compose] Added alias for docker-compose up --build ()
* [docker-compose] Added alias for docker-compose up --build

Sometimes building images before starting the containers comes in handy.

Alias: `dcupb`
Command: `docker-compose up --build`

* Updated docker-compose/README.md

Added the alias definition in the readme

Co-authored-by: Robby Russell <robby@planetargon.com>
2021-02-20 22:27:27 -08:00
Kartikey Tanna
7a8d89688d
Replce 'rake routes' task with 'rails rotues' ()
* Replce 'rake routes' task with 'rails rotues'

Fixes https://github.com/ohmyzsh/ohmyzsh/issues/9661

* Modified 'rake routes|grep' to use rails
2021-02-20 22:24:21 -08:00
iammordaty
f21e646ce6
refactor(git-flow): remove duplicate gflfp alias ()
Fixes 
2021-02-09 15:00:10 +01:00
Aidin Gharibnavaz
f75f8bb930
docs(git-prompt): explain stashed icon (⚑) ()
Stashed icon was added in 
2021-01-27 17:28:04 +01:00
Marc Cornellà
efcbd9f348 fix(vi-mode): ignore clip* function errors in yank and put widgets
Fixes 
2021-01-16 22:55:17 +01:00
bullno1
53aefc52e2 feat(plugins): add zbell plugin to notify when commands end ()
Closes 
2021-01-16 21:43:21 +01:00
deathjest3r
6b0557afe8
feat(plugins): add term_tab plugin to complete other zsh sessions' directories () 2021-01-16 21:27:32 +01:00
Marc Cornellà
f484f88b42 fix(debian): add quotes to kclean alias ()
Co-authored-by: la-magra <via.magra@gmail.com>
2021-01-16 19:58:29 +01:00