Commit graph

4092 commits

Author SHA1 Message Date
Marc Cornellà 71201ffd67 git: output nothing when no commits ahead or behind
This fixes old git_commits_ahead behavior and changes git_commits_behind
to have the same behavior.

Fixes #5355
2016-09-05 11:22:48 +02:00
Marc Cornellà 298b63513d git plugin: remove `format:' from --pretty flag
Changes gke, glol and glola aliases.

Fixes #5362
2016-09-05 10:56:18 +02:00
Marc Cornellà 2c9d8310e4 Merge branch 'fix/ssh-agent-process-check' 2016-09-05 08:35:48 +02:00
Marc Cornellà 973a4e646c ssh-agent: fix non-standard process check w/ pgrep
Confirmed to work on MacOS, OpenBSD, Solaris and busybox.
2016-09-05 08:31:20 +02:00
Marc Cornellà e92ac8932c Merge pull request #5328 from mcornella/ssh-agent-refactor
Refactor of ssh-agent plugin
2016-09-04 22:51:20 +02:00
jarhat 7d5bb2a34d archlinux: yasu now working - only one dash needed (#5373) 2016-09-04 19:51:42 +02:00
Marc Cornellà 53c3567cc3 Force ssh-agent output to use bourne-style syntax
On systems where the shell cannot be changed because of a strict
security policy, ssh-agent will use the syntax of whatever the
default $SHELL is.
For instance, if the default shell is tcsh, ssh-agent will use the
c-shell style (setenv).

This change forces ssh-agent to use bourne-style syntax since that
has to be later interpreted by zsh. Consequently, the environment
file will contain `export' statements from now on (instead of
`setenv').
2016-09-03 20:49:55 +02:00
Marc Cornellà 142ad842d7 Simplify PID check of current ssh-agent 2016-09-03 20:49:55 +02:00
Marc Cornellà cb0833ac13 Clean up formatting of ssh-agent plugin 2016-09-03 20:49:55 +02:00
Marc Cornellà b60acddefe Extract comments into README for ssh-agent plugin 2016-09-03 20:49:55 +02:00
Marc Cornellà 81e73e3d18 Delete useless /usr/bin/env in ssh-agent 2016-09-03 20:49:55 +02:00
Maximilian Güntner 0c60f421cb ssh-agent: Use /usr/bin/env to find ssh-add
This change is important when ssh-add is not inside /usr/bin e.g.
on NixOS.

Signed-off-by: Maximilian Güntner <code@maschinenpsychologe.de>
2016-09-03 20:49:55 +02:00
Alexander J. Dita e96b12666a Fixed typo (#5369)
Coffee was missing an F
2016-09-03 19:49:20 +02:00
Marc Cornellà f642fcecaf Merge branch 'add-droplr-plugin'
Closes #1972.
2016-09-02 21:04:17 +02:00
Marc Cornellà 7a32a98ced droplr: convert ruby file into zsh 2016-09-02 21:03:49 +02:00
Marc Cornellà 8648873887 Add Droplr README 2016-09-02 20:26:14 +02:00
Fabio Fernandes 1af4e9c521 Add Droplr plugin 2016-09-02 20:26:14 +02:00
Marc Cornellà 3c8a33364f Merge pull request #5343 from mcornella/rake-fast-plugin-refactor
Repost of #5319 and refactor of rake-fast plugin
2016-08-29 10:05:17 +02:00
Marc Cornellà abf73bb626 rake-fast: change variable name from $path' to $file'
This solves a problem of using the variable name `$path' which then
smashes the environment variable `$PATH' and messes up the session.

See https://github.com/robbyrussell/oh-my-zsh/pull/5343#issuecomment-243043098
2016-08-29 09:43:08 +02:00
Marc Cornellà 59fdb2b505 Reword rake-fast README, add lib/tasks information 2016-08-29 08:28:27 +02:00
Marc Cornellà 81ca3182a1 Fix syntax and formatting of rake-fast plugin 2016-08-29 08:28:27 +02:00
Aleksey Ivanov 2277967ecf Fix _tasks_changed algorithm in rake-fast plugin 2016-08-29 08:28:27 +02:00
Rory Hardy 2ab67382e7 Added perms plugin (#1752)
* Added perms plugin

* HTTPS -> HTTP for comment URL

* Added a README

* Updated TOF comment

* Pulled in updates by apjanke with minor tweaks
2016-08-26 22:05:33 +02:00
Kevin Ndung'u deadc369bf Disable zsh file globbing when running pip (#5348) 2016-08-26 21:41:16 +02:00
Marc Cornellà f2580833c0 Merge branch 'apjanke-cask-homebrew-paths' 2016-08-25 18:33:44 +02:00
Marc Cornellà cf4da1b7ac Add README to cask plugin 2016-08-25 18:33:15 +02:00
Marc Cornellà a7e60e4a93 Style fixes and shorter command lookup 2016-08-25 18:32:01 +02:00
Andrew Janke e1e3acc722 cask: check for Homebrew path for completion file 2016-08-25 03:22:07 +02:00
Marc Cornellà d8b03f3f95 init script: remove trailing slash from $ZSH_CACHE_DIR 2016-08-25 02:05:25 +02:00
Marc Cornellà 051a2ee2b8 Merge branch 'add-tig-plugin' 2016-08-24 21:28:54 +02:00
Marc Cornellà 04dd97783e Add README to tig plugin 2016-08-24 21:28:49 +02:00
Steffen Tröster bf79e1ceac adding tig plugin for oh-my-zsh 2016-08-24 21:28:49 +02:00
Multilul 6e33095a7d iTerm2 v3 tab commands fixes (#5336)
Fixes the "syntax error: expected line end ..." (-2741) when using the tab, split_tab and vsplit_tab commands in iTerm2 v3
2016-08-24 21:15:12 +02:00
Ivan Eisenberg cbd9d0403e Added documentation for undocumented OSX plugin commands (#5338)
* updated OSX plugin docs
2016-08-24 20:02:27 +02:00
Marc Cornellà 3186b65391 Merge pull request #5335 from mcornella/cleanup-archlinux-plugin
Clean up Archlinux plugin
2016-08-24 08:56:51 +02:00
Marc Cornellà b90c8944b4 archlinux: fix pacmanallkeys URL, make curl silent
Also make all functions local as to not spill variables into the
global namespace.
2016-08-24 08:51:06 +02:00
Marc Cornellà 98ea6414d8 archlinux: reword and simplify README 2016-08-24 08:48:03 +02:00
Marc Cornellà 65f16fb64b archlinux: remove comments, format functions better 2016-08-24 08:47:52 +02:00
Marc Cornellà 4f15bd15e5 Properly fix npm completion source
Problem introduced in 136a834.
2016-08-24 00:13:24 +02:00
Marc Cornellà 9e81b79d90 Reorder zshrc template 2016-08-23 09:42:32 +02:00
Marc Cornellà 136a83433a npm: only load completion if npm exists 2016-08-23 09:31:29 +02:00
Bjørn Madsen 3b8d0ad9d0 archlinux: Update yasu alias
Signed-off-by: Marc Cornellà <marc.cornella@live.com>
2016-08-23 01:51:29 +02:00
Marc Cornellà 251bc2d380 dircycle: keep switch until a directory is found
This fixes the use case where a directory in the dir stack
doesn't exist anymore, so the keystroke doesn't appear to
do anything.

It will keep trying to switch to the n-est directory in the
stack until it founds an available directory or the dirstack
has no more directories to switch to.
2016-08-22 16:57:10 +02:00
Philipp Wahala 7c1ca0e4d8 Create and cache npm completion on first run
Signed-off-by: Marc Cornellà <marc.cornella@live.com>
2016-08-22 16:17:34 +02:00
Shubham Chaudhary 4b9772fffe Add more go aliases (#5259)
*  Also gfa conflicts with git shortcut
2016-08-21 20:06:47 +02:00
Simon b9c3e862c7 Add alias for checking out develop branch (#5307) 2016-08-21 19:46:37 +02:00
khenarghot 292a62e3ab Fix git emptiness check in dogenpunk theme (#5329)
The parsing output for full git log output too slow so it replaced
with last commit show request, wich cause error if repository is empty
2016-08-21 18:40:34 +02:00
Marc Cornellà 774c4eca6f Revert "Fix pj() function when no project has been specified"
This reverts commit 7d298a3059.
2016-08-21 00:09:59 +02:00
Piotr Gaczkowski 24ac1aa348 Clobber ssh environment regardless of setopt (#5322) 2016-08-21 00:02:58 +02:00
Marc Cornellà 76821f506c Rename gh alias (git help) to ghh
This conflicts with several tools, including NodeGH [1] and
scm_breeze [2].

[1] https://github.com/robbyrussell/oh-my-zsh/issues/5313
[2] https://github.com/robbyrussell/oh-my-zsh/issues/5321

Related: #5130
2016-08-20 23:53:12 +02:00