Commit Graph
100 Commits
Author SHA1 Message Date
Marc CornellàandGitHub afba4f6b9f Load insecure completion files if compfix is disabled
We have to assume that if people disabled the compfix system they really want
their completion to work, ignoring any permission issues.

Fixes #5651
Fixes #5957
Fixes #6461
2018-05-15 21:22:47 +02:00
Marc CornellàandGitHub 0aa645f803 pyenv: search the pyenv command if not found (#6811) 2018-05-15 12:07:23 +02:00
Marc CornellàandGitHub d02d008579 Add directory hierarchy navigation to dirhistory (#6756)
* New Feature:
  Navigate directory hierarchy using ALT-UP and ALT-DOWN. (mac keybindings not yet implemented)
  ALT-UP moves to higher hierarchy (cd ..)
  ALT-DOWN moves into the first directory found in alphabetical order
2018-05-13 01:57:42 +02:00
Marc Cornellà 835c7df795 Merge branch 'MikeDawg-master'
Fixes #6426
Close #6598
2018-05-07 23:15:54 +02:00
Marc CornellàandGitHub 6bff079332 Allow completion of dot directories (#6803)
Fixes #3775, fixes #6543
2018-05-07 18:15:01 +02:00
Marc CornellàandGitHub 00f311a3c1 Add READMEs to plugins copydir and copyfile (#6802)
* Add README to copydir plugin

* Add README to copyfile plugin
2018-05-07 18:00:27 +02:00
c4981bae0a installer: check if zsh in path instead of /etc/shells
Fixes #4955

Closes #5931
Closes #6398

Co-authored-by: Void <vst4rbot@gmail.com>
Co-authored-by: Kaleb Elwert <belak@coded.io>
2018-05-05 22:03:57 +02:00
Marc CornellàandGitHub 8eba19208d Revert to checking if enable-ssh-support is set
Fixes #6772
2018-04-27 17:56:21 +02:00
Marc CornellàandGitHub 93d9431890 Check for Microsoft's WSL in open_command (#6751)
This will work only on files and directories in a DrvFs mount, i.e.
that can be translated to a Windows drive path.
For example: /mnt/c/Users/user.

Files and folders inside the LXSS directory can't be handled in
Windows, they must be ONLY used by the WSL subsystem. That's why
you won't be able to open your $HOME directory, for instance.

See https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/
2018-04-24 23:47:26 +02:00
Marc CornellàandGitHub ef70990ce1 Simplify hub check and hardcode aliasing (#6767)
* Simplify hub check and hardcode aliasing

* Update hub completion
2018-04-24 22:02:58 +02:00
Marc CornellàandGitHub 45a9f28464 [half-life] Fix last command check
Fixes #6758
2018-04-23 20:47:19 +02:00
Marc CornellàandGitHub cf5ccf06a0 [subl] Fix local variable definition
Fixes #6757
2018-04-23 13:06:49 +02:00
Marc Cornellà 897a7da6c5 Merge branch 'heads/apjanke/fix-local-in-sublime-plugin'
Closes #4086
2018-04-22 18:38:15 +02:00
Marc Cornellà 64cd002b7a Merge branch 'apjanke/norris-scrape'
Closes #3642
2018-04-22 18:26:28 +02:00
Marc CornellàandGitHub 676038bdfa Merge pull request #3422 from mcornella/fix-history-alias
Enhance history alias
2018-04-22 15:57:41 +02:00
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àandGitHub 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
Marc CornellàandGitHub 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
6c9af4455d Add exemplary custom theme folder
Co-authored-by: Profpatsch <mail@profpatsch.de>
2018-04-19 21:03:52 +02:00
Marc CornellàandGitHub 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
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
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
Marc CornellàandGitHub 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
Marc CornellàandGitHub 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
Marc CornellàandGitHub 5667161d49 Fix host display in nebirhos theme
Fixes #6028
2017-04-21 20:18:16 +02:00
Marc Cornellà 66bae5a5de Merge branch 'rename-pure-theme' 2017-03-30 21:46:57 +02:00
Marc Cornellà aaf7fa007f Add deprecation notice to pure theme 2017-03-30 21:45:26 +02:00
Marc Cornellà 237bbe3718 Merge branch 'add-contributing-file' 2017-03-30 20:38:54 +02:00
Marc Cornellà e0345bdd9d Merge branch 'ncanceill-add-contributing-file' into add-contributing-file 2017-03-30 20:37:59 +02:00
Marc Cornellà 72469f06e8 Add CONTRIBUTING.md file general structure 2017-03-30 20:32:32 +02:00
Marc Cornellà 8653f5da6d Rename pure theme to 'refined' 2017-03-16 18:11:18 +01:00
Marc Cornellà 1628adebf3 Add CONTRIBUTING.md file general structure 2017-03-16 18:11:17 +01:00
Marc CornellàandGitHub 9dab3c6718 Solving some random typos: #5736 (patrickelectric/typos) 2016-12-30 18:39:43 +01:00
Marc CornellàandGitHub 97c0384169 Add more information to cask plugin README 2016-12-18 05:02:08 +01:00
Marc Cornellà 67dad45b38 docker: update completion (upstream 2fe62f2)
Closes #5683
2016-12-14 23:22:26 +01:00
Marc CornellàandGitHub 937a7f66ef Precise Unix-based wording
Closes #5681
2016-12-08 02:10:18 +01:00
Marc Cornellà 62b0abdb6e brew: fix disclaimer shown if mkdir is aliased
Fixes #5623.
2016-11-11 15:20:11 +01:00
Marc Cornellà 6685aac42c dircycle: fix error on insert-cycledleft if dirstack is empty 2016-11-10 19:46:15 +01:00
Marc Cornellà 2d964086af Merge branch 'patch-ls-g-alias'
Closes #4988
2016-11-02 15:44:10 +01:00
Marc CornellàandGitHub 1b799e9762 Check dircolors settings before using gls on darwin (#5570)
`gls` seems to be installed by default or on most macOS systems, but its
default color scheme sucks. This fix will make sure to only use it if it
has been customised prior to running OMZ.

Related: #5516, #5520.
2016-11-02 15:39:28 +01:00
Marc Cornellà 0f62b7a8d8 common-aliases: check if $XIVIEWER is defined and minor fixes 2016-11-02 11:18:38 +01:00
Marc Cornellà e57787bead Merge branch 'hotfix/remove-php-suffix-alias'
Closes #5594
2016-11-02 11:04:15 +01:00
Marc Cornellà cb26c2f614 common-aliases: minor style fixes 2016-11-02 11:03:47 +01:00
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