Commit graph

3730 commits

Author SHA1 Message Date
Rolf Schröder
e701fa49e7
feat(plugins): New plugins for samtools and bedtools ()
* Add first impl of samtools autocompletion

* Just autocomplete with files all the time

* Add init impl of bedtools completion

* Add readme.md for bedtools plugin

* Add readme for samtools

Co-authored-by: Rolf Schroeder <rolf.schroeder@centogene.com>
2021-06-12 07:12:07 -07:00
Felix Stupp
26e9cead1a
feat(plugins): Plugin "debian": Switch order of "apt" and "aptitude" for detection ()
* Switch order of "apt" and "aptitude" for detection

"apt" is installed by default at Debian (maybe Ubuntu too), while "aptitude" does not seem to be installed by default.
For that, it may be better for most of the users to prefer "aptitude" if installed.

* plugins/debian/README: Change of order mirroded into documentation
2021-06-12 07:10:06 -07:00
Mirko Lelansky
81a6cc5050
feat(plugins): Add helper function to get current mercurial bookmark ()
Add a new function to get the current mercurial bookmark which can be
used in the theme prompts for example.
2021-06-12 07:01:26 -07:00
Oshadha Gunawardena
3cdc36fc1e
feat(plugins): Add a new showpkg alias to ubuntu plugin ()
Add an alias for ```showpkg``` to get the reverse and recursive dependencies on a package
2021-06-12 06:23:29 -07:00
Frani
6779e10759
feat(plugins): Add new isodate plugin for friendly date formatting commands ()
* add isodate plugin
2021-06-12 06:08:27 -07:00
Daniel Wu
9bdbe08aa2
feat(plugins): add gpr alias for /git pull -rebase/ which is easier to remember () 2021-06-12 06:06:09 -07:00
Gabo Esquivel
a3d90624df
feature(plugins): add bower commands aliases () 2021-06-11 21:06:06 -07:00
Francesco Giannelli
a2e6a85bf3
fix(plugins): cache thefuck aliases () 2021-06-11 20:57:04 -07:00
Dom Sekotill
94ea7b4516
fix(virtualenvwrapper): several changes for checking git directory, including fixes ()
* Test only for the presence of a .git directory in virtualenvwrapper

Instead of using both $(git rev-parse --show-toplevel) and a check for
a .git directory, use just the latter. As well as being redundant
the former does not work quite so well when using multiple worktrees;
each worktree will be treated as a separate project.

* Unset ENV_NAME & deactivate if no virtualenv found

This addresses  without breaking current behaviour (where current
behaviour is correct).

When changing directories, if there is no environment matching
ENV_NAME, ENV_NAME is emptied and deactivate called if there is a
current environment active (based on CD_VIRTUAL_ENV).

* Use path comparison not string comparison for paths

This will solve part of issue  where WORKON_HOME is defined with a
trailing slash or not normalised in some way, as well as instances
where symlinks are used, and any other instances where constructed
paths don't exactly match even though they go to the same file.

Co-authored-by: Robby Russell <robby@planetargon.com>
2021-06-11 20:52:22 -07:00
Wenli Wan
0869a57cb5
fix(kubectl): remove duplicated alias for kubectl plugin kgsa () 2021-06-11 20:49:04 -07:00
Dzianis Dashkevich
81db2af601
feat(rails): Add rdmr (rake db:migrate:redo) alias to Rails plugin ()
Co-authored-by: Robby Russell <robby@planetargon.com>
2021-06-11 20:12:13 -07:00
Dzianis Dashkevich
42f56c5601
feat(rails): Add rdmd and rdmu aliases to Rails plugin ()
* `rdmd` is aliased to `rake db:migrate:down`
* `rdmu` is aliased to `rake db:migrate:up`
* These tasks allow you to run a specific migration up or down by
specifying the appropriate `VERSION` env variable, which contains
the numerical prefix of the migration's filename
2021-06-11 20:10:00 -07:00
Eric Liu
580c28dedd
feat(rails): add 'rails server --bind' alias () 2021-06-11 20:07:21 -07:00
Hugo Stijns
00ccb44990
fix(vagrant): Allow dot in Vagrant box name () 2021-06-11 20:04:58 -07:00
Robby Russell
5cdba87025 Aliases: Adding a README file for the plugin. 2021-06-11 19:46:00 -07:00
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