Commit graph

5017 commits

Author SHA1 Message Date
Marc Cornellà
2589cdd8f9 Increment HISTSIZE to fix hist_expire_dups_first
This fixes the old behavior which made it so all duplicates would be
deleted if the command history filled up with unique events.

> You should be sure to set the value of HISTSIZE to a larger number
> than SAVEHIST in order to give you some room for the duplicated
> events, otherwise this option will behave just like HIST_IGNORE_ALL_DUPS
> once the history fills up with unique events.
2018-04-22 15:33:12 +02:00
Marc Cornellà
9f2f22d953 Remove duplicate option append_history
The option inc_append_history already has the same effect.
2018-04-22 15:33:11 +02:00
Marc Cornellà
20d63be655 Use zparseopts to get passed arguments 2018-04-22 15:33:10 +02:00
Marc Cornellà
f8180c3a64 Allow overriding -l flag in history 2018-04-22 15:32:30 +02:00
Marc Cornellà
03758416fe Ensure builtin fc is used (see #3001) 2018-04-22 15:32:02 +02:00
Marc Cornellà
643bb25a0d Organize history.zsh file and improve comments 2018-04-22 15:32:02 +02:00
Marc Cornellà
94baa9eadd Simplify `if' into oneliner, allow spaces in HISTFILE 2018-04-22 15:32:01 +02:00
Marc Cornellà
d87d4331cf Change history alias into a function
This commit changes the history alias into a function which puts
the passed arguments before `-l 1`. It also provides a temporary
workaround to the lack of a `history -c` command in zsh.

For more information see issues 739 and 789.
2018-04-22 15:31:53 +02:00
Marc Cornellà
dd39d43021
Merge pull request #5601 from mcornella/refactor-zsh_reload-plugin
Refactor zsh_reload plugin
2018-04-22 12:59:40 +02:00
Marc Cornellà
fbbe902c38 zsh_reload: add README 2018-04-22 12:55:21 +02:00
Marc Cornellà
405b8f220a zsh_reload: use exec zsh instead of source ~/.zshrc
`source ~/.zshrc` is a bad practice, it doesn't make sure that the full
zsh session is reloaded and it may have side effects.

Use `$SHELL` as the path to zsh if it exists (this will fix edge cases
where the zsh used is not the first on $PATH). Otherwise, use `zsh`.
2018-04-22 12:55:13 +02:00
Marc Cornellà
8706c8eb64 zsh_reload: ignore insecure compinit files 2018-04-22 12:50:00 +02:00
Marc Cornellà
9a7c56dcdd zsh_reload: fix code style and indent with tabs 2018-04-22 12:50:00 +02:00
Chris Fleming
9a71864288 Fix gpg-agent plugin checks (#6469)
* Always try and start gpg-agent, with --use-standard-socket it will try and use a standard socket directory. It won't start multiple agents if agent is already running. In addition, XDG_RUNTIME_DIR isn't always set

* ssh socket if broken if --daemon is run again, so onky start if we don't have a socket

* Removed unnecessary allocation of GPG_SSH_AUTH_SOCK
2018-04-21 22:26:36 +02:00
Marc Cornellà
d7948b39dc
[rkj-repos] Make hg prompt check less strict (#6746)
* [rkj-repos] Make `hg prompt` check less strict

Move the `hg prompt` check inside the hg_prompt_info function so that
it returns an empty string if hg-prompt isn't installed.

Fixes #6743.

* [rkj-repos] Check for hg in `hg prompt` function
2018-04-19 23:32:53 +02:00
Marc Cornellà
6c9af4455d
Add exemplary custom theme folder
Co-authored-by: Profpatsch <mail@profpatsch.de>
2018-04-19 21:03:52 +02:00
Marc Cornellà
4fec0a46e7
[installer] use command -v to check for git
Quick fix to the script not finding git due to hash.
Solves #6697.
2018-04-17 22:14:23 +02:00
安正超
86a0b86562 [cloud theme] add a space (#3215) 2018-04-17 21:34:03 +02:00
Darius Grigalevicius
5c047ae8ba updated symfony plugin to add entity generation and schema update aliases (#5042) 2018-04-15 21:55:47 +02:00
Marc Cornellà
702b8b547f Merge branch 'iBublik-feature/hanami-plugin'
Close #5268.
2018-04-15 20:26:18 +02:00
Marc Cornellà
ef9044c722 Fix styling and format of hanami README 2018-04-15 20:25:50 +02:00
Artem Pyankov
7c62c57b9f Add table of aliases for hanami plugin 2018-04-15 20:08:52 +02:00
Artem Pyankov
e64cdc9ec4 Add README for hanami plugin 2018-04-15 20:08:52 +02:00
Artem Pyankov
0bd9e5d859 Add hanami plugin inspired by rails 2018-04-15 20:08:51 +02:00
Erwan ROUSSEL
a8f3b374d8 npm init (#6648) 2018-04-15 19:54:42 +02:00
Marc Cornellà
cfec5d56df [archlinux] add recent aliases and functions to readme 2018-04-15 19:18:25 +02:00
Marc Cornellà
25679182a4 Merge branch 'eepp-plugins-archlinux-more-stuff'
Closes #2552.
2018-04-15 19:14:18 +02:00
Philippe Proulx
dc57d1881b plugins/archlinux: add pacls, pacown, pacweb 2018-04-15 19:13:39 +02:00
Donncha Ó Cearbhaill
4fa4e5fe4a Use HTTPS for manual git clone to avoid MITM (#6043)
The git:// transport is completely unauthenticated. An attacker on the local or upstream network can easily man-in-the-middle an oh-my-zsh update and get remote code execution on your system. Only the https:// git transport should be used.
2018-04-15 18:47:38 +02:00
Jacopo De Simoi
ccd02866f6 Fix git_commits_{ahead,before} when no upstream branch is defined (#6658)
If @{u} is not defined, git rev-list will give an error; redirect
to stderr the error and deal with this case in what follows.
2018-04-15 18:44:48 +02:00
Marc Cornellà
2fce6a0faf
[archlinux] Fix function syntax to avoid clashes with aliases
See https://bugs.debian.org/871816

Fixes #6592
2018-04-15 15:53:43 +02:00
cori schlegel
fa93ea0d75 [rkj-repos] Check for 'hg prompt' and exit if not found (#6655)
* Check for  extension, and exit if not found. Addresses #6036

* Fix styles in rkj-repos.theme
2018-04-15 15:48:31 +02:00
Marc Cornellà
aa5279f2dc
Fix typo that resulted in math error (#6731)
[emotty] fix typo that resulted in math error
2018-04-15 15:20:26 +02:00
Alexis Hildebrandt
88d21fea6c Improve emotty plugin (#5999)
* The display_emotty function show the name of the displayed emotty set

* Unless an emotty set was given show the emotty set configured
  in $emotty_set
2018-04-15 15:16:44 +02:00
Alexis Hildebrandt
8e1cfc9154 Fix emotty theme when using zsh 5.2 (#5998)
see http://www.zsh.org/mla/workers/2015/msg03259.html
2018-04-15 15:16:28 +02:00
Arthur Brainville
30a5124f9d Added trizen to the archlinux plugin (#6650)
* Added trizen to the archlinux plugin

trizen is the recomended solution for using the Arch User Repository.
both yaourt and pacaur have some issues.

Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>

* Add trizen aliases to the readme

Also fixed inconsistency in formatting on readme file.
(also added myself in the contributor list)
2018-04-15 14:47:08 +02:00
Cory Snider
f9d4a067ec Reduce number of git calls when displaying prompt (#3795)
The avit theme's _git_time_since_commit function was running git twice.
Reduce it with a single call to `git log`, checking the exit code for
success.
2018-04-15 14:45:58 +02:00
Franz König
15d051c32b hotfix for archlinux.plugin.zsh (#5909)
Co-authored-by: dalu <2694548+dalu@users.noreply.github.com>
2018-04-15 13:38:25 +02:00
Eric Hudon
2aa2ea744e Change the br argument to branch to follow PR #6678. (#6680) 2018-04-15 13:17:23 +02:00
Jean-Benoit Griesner
62b8a70a7c Add Qwant engine - web_search plugin (#6701)
Co-authored-by: Maxime AURIAU <maxime.auriau@dnd.fr>
2018-04-06 19:09:00 +02:00
fREW Schmidt
9b1c21a409 Get rid of some silly copy pasta (#3187)
Said gem instead of vagrant
2018-04-02 13:43:41 +02:00
Lauri Lavanti
0cec462621 Add docker-compose start alias 'dcstart' (#6675) 2018-03-18 14:10:58 -07:00
Eric Hudon
5f2c34374b Change the br action to branch to be more explicit. (#6678) 2018-03-18 14:10:34 -07:00
Quentin Revel
7ed82b4df6 Update _docker-compose to latest version (#6315) 2018-03-09 08:16:15 -08:00
Lauri Lavanti
ce23ef9a2f Add alias for docker-compose pull (#6665) 2018-03-09 08:14:51 -08:00
Jon Mosco
e6e2b3d42f kube-ps1 zsh prompt helper (#6507) 2018-03-09 08:14:36 -08:00
Andrea Giardini
afad3e1f8d Add kubectl alias for apply (#6662) 2018-03-09 08:14:09 -08:00
Luke
7c2028e84e Update/add kubectl logging commands (#6639) 2018-03-09 08:12:42 -08:00
Andrew Matheny
84e9066984 Update docker-compose autocompletion (#6607) 2018-03-09 08:11:52 -08:00
Nikolay Panov
52c4e134cc Update django.plugin.zsh (#6634)
Added support for 'showmigrations' django command.
2018-03-09 08:11:30 -08:00