Marc Cornellà
f898ada8e3
open_command: fix and improve command for WSL
...
- Add double quotes to command so that the next argument isn't
interpreted as the title for the start command.
- If the first argument is a valid path, convert it to Windows path
notation. If `wslpath` fails—because it's a path from inside WSL,
which cannot be converted to Windows path notation— fail with an
error code.
This last circumstance will show an error like so:
wslpath: path: Result not representable
2018-06-30 21:13:08 +02:00
Marc Cornellà
12086593a4
open_command: simplify code
2018-06-30 21:13:08 +02:00
Marc Cornellà
be3f96908e
Merge branch 'origin/refactor-rand-quote-plugin'
2018-06-29 18:18:00 +02:00
Marc Cornellà and GitHub
76bfa7dd2a
rand-quote: refactor rand-quote function
...
- Make function variables local
- Use prompt color sequences
- Use guard clause to check for curl
- Improved syntax
2018-06-29 18:16:10 +02:00
Marc Cornellà and GitHub
1e255a1a8d
rand-quote: add README
2018-06-29 17:55:55 +02:00
Marc Cornellà and GitHub
787c6899d4
rand-quote: update URL
...
Fixes #6949
2018-06-29 17:50:32 +02:00
Marc Cornellà and GitHub
6af58f492f
common-aliases: delete unexistant command
...
`display_info` doesn't exist in any known platform
Fixes #5208
2018-06-18 22:47:51 +02:00
Marc Cornellà
e96ca34501
Merge branch 'update-meteor-plugin'
...
Closes #3767 (incorporates some of its changes)
2018-06-15 23:07:06 +02:00
Marc Cornellà
ef1e89b44b
meteor: fix formatting and reorganise
2018-06-15 23:06:09 +02:00
Marc Cornellà and GitHub
08153ff526
Use https everywhere in the README
2018-06-15 18:55:39 +02:00
Marc Cornellà and GitHub
09fbc16366
Refactor lein plugin ( #6914 )
...
* Add upstream lein completion (cee9029d)
* Delete lein.plugin.zsh
2018-06-12 20:45:38 +02:00
be5bff2e86
Allow FreeBSD to correctly detect number of CPUs
...
Use the same scheme as Darwin - sysctl instead of nproc, which doesn't exist in FreeBSD
Closes #2545
Co-authored-by: Daniel Bye <dbye@users.noreply.github.com >
2018-06-12 19:54:47 +02:00
Marc Cornellà and GitHub
7a9bab1d77
Update tmuxinator completion to 03c8babb
2018-06-12 19:20:10 +02:00
Marc Cornellà and GitHub
3dcf9fd662
Delete python completion in favor of zsh's one
2018-06-12 18:40:31 +02:00
Marc Cornellà and GitHub
f461d21de1
virtualenvwrapper: set $WORKON_HOME if undefined
...
This uses the default that virtualenvwrapper.sh would set if it was called. If the user
changes its value after the plugin is loaded, the plugin will work all the same.
Fixes #6882
Closes #6870
Closes #6883
2018-06-06 17:14:19 +02:00
Marc Cornellà and GitHub
ebda8af870
Clarify ssh-agent settings position
2018-05-28 17:09:53 +02:00
Marc Cornellà and GitHub
62f676116e
Merge pull request #6863 from robbyrussell/fix-compfix-loading
...
compfix: better error message and loading of completions
2018-05-26 21:35:39 +02:00
Marc Cornellà
b91659951e
Always load secure completion directories
2018-05-26 21:33:49 +02:00
Marc Cornellà
77b924b839
Give more helpful message and disable purge of caches
...
This error message will give information on what exactly has happened
and how to either solve ownership and permissions or disable the check
entirely.
Also gets rid of the purge of compinit caches since with the current
logic insecure completion directories are ignored and therefore haven't
tainted the cached files.
2018-05-26 21:33:24 +02:00
Marc Cornellà and GitHub
5896c87155
shrink-path: match only the beginning of the directory ( #6862 )
...
Fixes #6317
2018-05-26 19:31:17 +02:00
Marc Cornellà
2294bae06a
Merge branch 'shrink-path-chpwd-fix'
...
Closes #5930 .
2018-05-26 19:07:46 +02:00
Marc Cornellà
c09783c255
Revert "unset chpwd_functions before running cd ... ( #6830 )"
...
This reverts commit 3dab7e46e8 .
2018-05-26 19:02:03 +02:00
Marc Cornellà and GitHub
957eb77239
Merge pull request #6844 from lbolla/Issue6843
...
Cache kubectl completion script to file to speed up sourcing
2018-05-26 18:32:13 +02:00
Marc Cornellà and GitHub
9b11b7e938
Update logic to follow npm plugin convention
2018-05-26 18:25:47 +02:00
Marc Cornellà and GitHub
5421650c81
Merge pull request #6860 from nrobinson2000/patch-1
...
Remove po alias
2018-05-26 15:38:21 +02:00
ed0bd6b33c
added a transfer.sh plugin ( #5854 )
...
* added a transfer.sh plugin
created a function to easily upload files to transfer.sh file sharing site
Usage : transfer file.txt
* added README for transfer.sh plugin
* replaced transfer function with @nl5887 version
* updated transfer README.md
* modified the script to use tar command instead of zip
* Update README formatting
Co-authored-by: Remco Verhoef <remco@dutchcoders.io >
2018-05-25 20:56:59 +02:00
Marc Cornellà and GitHub
3d8ee47c7a
Update README formatting
2018-05-25 20:44:56 +02:00
Marc Cornellà
8f3737f45b
Revert fbcda4d
...
The PROMPT building method clashes with other themes and
plugins that modify the PROMPT variable.
Also reverted the $jobstates trick due to it not working
inside $PROMPT.
2018-05-23 11:33:34 +02:00
Marc Cornellà and GitHub
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à and GitHub
0aa645f803
pyenv: search the pyenv command if not found ( #6811 )
2018-05-15 12:07:23 +02:00
Marc Cornellà and GitHub
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à and GitHub
6bff079332
Allow completion of dot directories ( #6803 )
...
Fixes #3775 , fixes #6543
2018-05-07 18:15:01 +02:00
Marc Cornellà and GitHub
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à and GitHub
8eba19208d
Revert to checking if enable-ssh-support is set
...
Fixes #6772
2018-04-27 17:56:21 +02:00
Marc Cornellà and GitHub
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à and GitHub
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à and GitHub
45a9f28464
[half-life] Fix last command check
...
Fixes #6758
2018-04-23 20:47:19 +02:00
Marc Cornellà and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
9dab3c6718
Solving some random typos: #5736 (patrickelectric/typos)
2016-12-30 18:39:43 +01:00
Marc Cornellà and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
7f06a0cd82
Merge pull request #5463 from slavaGanzin/globalias
...
Fixes #4834
2016-10-04 14:50:28 +02:00
Marc Cornellà and GitHub
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à and GitHub
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