Commit Graph
100 Commits
Author SHA1 Message Date
Marc Cornellà fc4e0cd7ba common-aliases: check if $BROWSER is defined on browser aliases 2016-11-02 11:02:58 +01:00
Marc Cornellà 0ee89d965e Add brew completion missing disclaimer 2016-10-25 07:17:29 +02:00
Marc CornellàandGitHub 2fe358852b Add a tip to ease agnoster first setup (#5565)
* Add a tip to ease agnoster first setup

* Change link to agnoster wiki + format changes

https://github.com/robbyrussell/oh-my-zsh/wiki/Themes#agnoster
2016-10-25 06:04:54 +02:00
Marc CornellàandGitHub 3bd6be1076 Change link to agnoster wiki + format changes
https://github.com/robbyrussell/oh-my-zsh/wiki/Themes#agnoster
2016-10-25 06:04:08 +02:00
Marc Cornellà 37bf9186a0 Update docker completion (2015-10-25)
Closes #5568

Source:
https://github.com/docker/docker/commit/c9fdf9abf8d6443598808809b900d96e04adfcb1
2016-10-25 05:43:11 +02:00
Marc CornellàandGitHub 31a84e710f Merge pull request #5517 from mcornella/fix-suvash-theme
Display suvash prompt w/o Ruby; refactor code
2016-10-14 00:25:45 +02:00
Marc Cornellà 015598b8a8 Display suvash prompt w/o Ruby; refactor code 2016-10-14 00:24:30 +02:00
Marc CornellàandGitHub c1ee74e7e3 Change OS X to macOS on README (#5528)
Change OS X to macOS in the README file in line with apples rebranding
of the operating system.
2016-10-13 23:43:20 +02:00
Marc Cornellà c24dfa1ab4 Fix ls coloring in MacOS if gls is not installed
Fixes #5520.
2016-10-11 09:24:43 +02:00
Marc Cornellà 7f9b773350 Fix compdef commands in git plugin
The command `compdef command=git` returns an error in some cases, the
appropriate command is `compdef _git command`.

Fixes #5442
2016-10-04 17:23:20 +02:00
Marc CornellàandGitHub 7f06a0cd82 Merge pull request #5463 from slavaGanzin/globalias
Fixes #4834
2016-10-04 14:50:28 +02:00
Marc CornellàandGitHub 3cc61701bd Update per-directory-history plugin to latest version (#5493)
Latest version: February 17, 2016 - dd81201
2016-10-04 13:56:25 +02:00
Marc CornellàandGitHub f701b4de0f Fix formatting and usage section
Also:

- Changes `globes` (which doesn't exist) to `glob expressions`.

- Delete the `trigger autocompletion to your current aliases` use case, since that's not
  really implemented.
2016-10-04 13:55:11 +02:00
Marc Cornellà 99dbf322da Merge branch 'set-ls_colors-if-not-available'
Based on #5488.
2016-10-04 01:30:21 +02:00
Marc Cornellà c2e3a410ea Fix style of theme-and-appearance.zsh 2016-10-04 01:30:01 +02:00
Marc Cornellà 6304a789ab Only set default LS_COLORS if not set before
Also, force the use of Bourne-style shell syntax with `dircolors -b`.
2016-10-04 01:29:47 +02:00
Marc Cornellà 6c08286c8e Use $commands[] to check for command existence 2016-10-04 01:27:19 +02:00
Marc CornellàandGitHub 81981ef248 Fix cp plugin completion and refactor (#5427)
* cp plugin: change cpv to function so that completion works

* cp plugin: show numbers in units of 1024 (K,M,G,T)

Use `-h` level (3): output numbers in units of 1024.
See the manpage of rsync for more information.

* cp plugin: add a README file

* cp plugin: recurse directories

* cp plugin: remove `--` to separate files from options

This has some undesired effects, like having `cpv --help` be a file
not found error.

Use `--` yourself if you need it (which you generally don't):

```zsh
cpv -- -some-file-with-hyphens.txt /tmp
```

Added this same info to the README.
2016-10-04 01:03:16 +02:00
Marc Cornellà 16074a1c4d Merge branch 'add-cargo-plugin'
Adds commits from #3007 and #5158.

Closes #3007
Closes #5158

Fixes #5246
2016-10-04 00:18:18 +02:00
Marc Cornellà 16bd691b3b Add README for the cargo plugin 2016-10-04 00:17:38 +02:00
Marc CornellàandGitHub 0576895d03 Change confusing 12h-time in xiong-chiamiov themes (#5483) 2016-10-04 00:02:05 +02:00
Marc Cornellà cd44246415 Fix small copy-editing mistake in archlinux README 2016-10-03 01:04:16 +02:00
Marc Cornellà b18e5bf49c Merge branch 'Majora320-master'
Closes #5460
2016-10-03 01:02:49 +02:00
Marc Cornellà c488ab15f3 last-working-dir: add README 2016-09-30 20:11:17 +02:00
Marc Cornellà fb6738a7e1 last-working-dir: don't jump if not in $HOME 2016-09-30 20:11:17 +02:00
Marc Cornellà 8ea56633a4 last-working-dir: clean up source 2016-09-30 20:11:17 +02:00
Marc CornellàandGitHub 1159aa14fa Merge pull request #5476 from mcornella/fix-extract-deb-packages
Fix extract of deb packages with data.tar.xz
2016-09-30 00:38:58 +02:00
Marc Cornellà bac896fca7 extract: add README 2016-09-30 00:38:21 +02:00
Marc Cornellà b5dc976d23 extract: add file extensions to extract completion 2016-09-30 00:38:21 +02:00
Marc Cornellà 68425c266a extract: replace basename&sed w/ zsh variable expansion syntax
`${var:t:h}` uses:

- `${var:t}` which acts as `basename`.

- `${var:r}` which removes the extension.

See http://zsh.sourceforge.net/Doc/Release/Expansion.html#Modifiers
2016-09-30 00:38:03 +02:00
Marc Cornellà f12cb5a697 extract: fix extraction of deb packages with data.tar.xz 2016-09-29 14:05:21 +02:00
Marc Cornellà 09d95251a7 extract: fix styling 2016-09-29 14:05:21 +02:00
Marc Cornellà 1ad2556ce3 Merge branch 'refactor-svn-plugin'
Closes #5462
2016-09-29 14:04:22 +02:00
Marc Cornellà e6df0e036e Clean up and refactor code in svn plugin 2016-09-29 14:03:09 +02:00
Marc Cornellà f573247a59 Clean up svn README 2016-09-29 13:56:48 +02:00
Marc CornellàandGitHub fa78fd456c Merge pull request #5435 from mcornella/fix-completion-hyphened-files
Fix completion of files with hyphens and underscores
2016-09-22 00:48:54 +02:00
Marc Cornellà 4e12024b0b Fix styling of lib/completion.zsh 2016-09-22 00:44:25 +02:00
Marc Cornellà d51ee38906 Merge branch 'catull-enhancement-add-angular-cli-plugin'
Closes #5299
2016-09-21 21:28:56 +02:00
Marc CornellàandGitHub 8f07e26ba4 Add check for git and bzr to agnoster theme (#5432)
Plugin command-not-found on Arch Linux returns 0 if git or bzr is found in repos, hence outputting unwanted pkgfile output.

Checking if the commands exist first fixes all such issues.
2016-09-21 21:11:05 +02:00
Marc Cornellà 5bd9500bf4 ssh-agent: check ssh-agent process w/ ps again
The alternative is using tools that aren't available everywhere.
The latest report is that cygwin/msys2 doesn't have pgrep.

Fixes #5418.
2016-09-17 13:01:10 +02:00
Marc CornellàandGitHub 3042a1a834 Update docker completion (#5354)
* Update the docker completion script with the official docker zsh completion script
* Update README
2016-09-14 09:58:28 +02:00
Marc CornellàandGitHub e1294c602c Merge pull request #4313 from RomanKapitonov/add-services-managing-to-brew
Add ability to autocomplete services for brew-services.
2016-09-12 17:45:10 +02:00
Marc CornellàandGitHub c3a87e7df8 Add FirewallD plugin (#5386) 2016-09-12 17:38:13 +02:00
Marc Cornellà ac9a8cb687 Merge branch 'fix/cached-npm-completion'
Fixes #5332
2016-09-10 00:24:46 +02:00
Marc Cornellà b70842bae4 npm: unset NPM_COMPLETION_FILE variable 2016-09-10 00:23:50 +02:00
Marc Cornellà 76924b7f5f npm: only source npm completion cache if file exists 2016-09-10 00:23:50 +02:00
Marc Cornellà 2a44527ac3 npm: quiet error output of npm completion 2016-09-10 00:23:50 +02:00
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àandGitHub e92ac8932c Merge pull request #5328 from mcornella/ssh-agent-refactor
Refactor of ssh-agent plugin
2016-09-04 22:51:20 +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
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
Marc CornellàandGitHub 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
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
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
Marc CornellàandGitHub 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àandGitHub 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
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
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
Marc CornellàandGitHub 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
Marc CornellàandGitHub 66179bdab8 Fix git-flow README
- Fix "installation" information
- Add links to github project
- Transform list of aliases into table with descriptions
2016-08-17 22:39:41 +02:00
Marc CornellàandGitHub acd6a14a2f Merge pull request #5296 from mcornella/fix-pj-plugin
Fix pj plugin
2016-08-16 17:34:13 +02:00
Marc Cornellà bec53135e4 Fix shwordsplit bug when a basedir contains spaces
The `shwordsplit` option affects all variables and we only need to split
the `$EDITOR` variable. Because of that, using `${=spec}` is a much better
alternative.

More info at
http://zsh.sourceforge.net/Doc/Release/Expansion.html#index-SH_005fWORD_005fSPLIT_002c-toggle
2016-08-16 08:32:43 +02:00
Marc Cornellà 7d298a3059 Fix pj() function when no project has been specified 2016-08-16 08:32:43 +02:00
Marc Cornellà 7f8851f52f Refactor pj function
- Use `emulate -L zsh` to make all variables local.

- Use `shwordsplit` to interpret `$cmd` spaces correctly.

- Rename `$project` and `$file` variables to the more appropriate `$basedir`
  and `$project`.
2016-08-16 08:32:43 +02:00
Marc Cornellà c9c11d605f Fix _pj completion function
- `$PROJECT_PATHS/*` wasn't working correctly. You have to iterate over
  its elements in order to use globbing with it.

- The `$projects:t` line wasn't necessary if we used `compadd`.

- `compadd` better supports destructuring an array with spaces in some
  of its elements.
2016-08-16 08:32:43 +02:00
Marc Cornellà 26bef0942b Add Readme to pj plugin 2016-08-16 08:32:43 +02:00
Marc Cornellà 525ee50815 Clean up comments in pj plugin file and reorganise 2016-08-16 08:32:43 +02:00
Marc Cornellà 7654b16b39 [git plugin] Fix indentation and organise aliases 2016-08-07 18:30:57 +02:00
Marc CornellàandGitHub d0610931db Merge pull request #5233 from donatj/donatj-patch-1
Removes .phing_target generation from phing plugin
2016-07-18 23:39:14 +02:00
Marc CornellàandGitHub 644bc641ad Merge pull request #5207 from mcornella/gb-plugin
Repost of #5176: add gb plugin
2016-07-05 11:22:48 +02:00
Marc Cornellà dc0a884ea7 Rename getgb plugin to gb 2016-07-04 22:34:41 +02:00
Marc Cornellà cab6359173 Rename gb completion file to more conventional _gb 2016-07-04 22:34:38 +02:00
Marc Cornellà a29f8f7659 Fix formatting of gb plugin completion 2016-07-03 23:20:30 +02:00
Marc Cornellà d0ea3f22b1 Add more information to the README 2016-07-03 23:20:30 +02:00
Marc CornellàandGitHub c62442f999 Fix gfg function completion definition
Related: #5179
2016-06-21 01:06:21 +02:00
Marc CornellàandGitHub 9a61336d33 Fix man-preview completion definition
Related: #5179
2016-06-20 22:19:02 +02:00
Marc CornellàandGitHub b1561c662b Update taskwarrior completion to 2.5.1 (#5171) 2016-06-17 11:43:08 +02:00
Marc Cornellà 46c0d9590d Add README for OSX plugin and refactor plugin file 2016-06-16 00:23:09 +02:00
Marc Cornellà 9e8f417dab Merge pull request #4729 from sachin21/update_rake_command_in_rails_plugin
Support bundler
2016-05-30 15:33:55 +02:00