Marc Cornellà
d3dfc13716
lib: use grep-alias cache only if ZSH_CACHE_DIR is writable
...
Fixes #8693
2020-03-02 12:35:58 +01:00
Marc Cornellà and GitHub
9ce7de9f16
Document ZSH_THEME_RANDOM_BLACKLIST setting
2020-03-01 22:53:33 +01:00
Marc Cornellà
461b2134de
Merge branch 'grep.zsh-improvements'
...
Closes #5085
Closes #7451
Closes #7265
Fixes #8444
Closes #8445
2020-03-01 22:46:24 +01:00
Marc Cornellà
dc190d872a
Refactor grep.zsh file
...
- Move grep-alias path to variable.
- Use <<< "" instead of piped echo to check grep flags.
- Remove check for --color only since it's the same release as --exclude.
2020-03-01 20:40:27 +01:00
Marc Cornellà
8d814fdff6
Fast algorithm to determine grep alias flags
...
This version tries whether grep supports all the flags together
and progressively checks older flags if the grep test fails.
This means only one grep call if all flags are supported, and
one additional call for every flag that's not supported, up to
a maximum of 3 calls.
2020-03-01 14:05:01 +01:00
Marc Cornellà and GitHub
498cd722b3
Add git version requirement in documentation
2020-02-29 14:56:37 +01:00
Marc Cornellà and GitHub
14b4f62e65
updater: fix --autostash argument. Works for git > 1.7.1
...
See https://github.com/ohmyzsh/ohmyzsh/pull/7172#issuecomment-592875226
2020-02-29 14:53:06 +01:00
Marc Cornellà
888ab9091c
lib: add support for clippaste in WSL using powershell
...
Source: https://github.com/microsoft/WSL/issues/4852#issuecomment-579616808
2020-02-28 19:07:05 +01:00
Marc Cornellà
57739cbcb6
lib: add support for clip.exe clipboard copy in WSL
2020-02-27 23:24:23 +01:00
Marc Cornellà and GitHub
65642dfcff
lib: support additional clipboard types ( #7996 )
...
* clipboard: Reduce unnecessary special-casing on stdin
Ideally the parameter would just be removed-users could always
just do "clipcopy < some-file". but removing the parameter would break
backwards compatibility.
In any case, this simplifies the logic considerably.
* clipboard: Avoid unnecessary re-detection each time
Previously, OS detection would happen on each invocation. This makes it
happen once (unless it fails, in which case it will try again on the
next invocation).
This has the additional benefit of localizing the platform-specific
checks and commands, too, versus spreading them out in separate
functions.
* clipboard: Add support for several more clipboards
This implements essentially the same heuristic as neovim, with the additional
(existing) special support for Cygwin.
See: https://github.com/neovim/neovim/blob/e682d799fa3cf2e80a02d00c6ea874599d58f0e7/runtime/autoload/provider/clipboard.vim#L55-L121
- pbcopy, pbpaste (macOS)
- cygwin (Windows running Cygwin)
- wl-copy, wl-paste (if $WAYLAND_DISPLAY is set)
- xclip (if $DISPLAY is set)
- xsel (if $DISPLAY is set)
- lemonade (for SSH) https://github.com/pocke/lemonade
- doitclient (for SSH) http://www.chiark.greenend.org.uk/~sgtatham/doit/
- win32yank (Windows)
- tmux (if $TMUX is set)
* clipboard: Fix tmux clipcopy after testing
Tmux must have special handling for /dev/stdin since it's managing the
terminal itself. This was tested with tmux-2.9a on macOS.
* clipboard: Fix bad expansion of exit-code test
2020-02-27 22:59:48 +01:00
Marc Cornellà and GitHub
18ee5dffdc
Merge branch 'master' into clipboard
2020-02-27 22:55:30 +01:00
Marc Cornellà
2c0315dba4
ng: refactor README
2020-02-27 19:26:55 +01:00
Marc Cornellà
6cb8ff391d
vagrant: document aliases
2020-02-27 15:21:10 +01:00
Marc Cornellà and GitHub
3c61bac9a1
vagrant: add common aliases ( #3762 )
2020-02-27 15:20:19 +01:00
Marc Cornellà and GitHub
609890847d
npm: hardcode completion function and delete cached one ( #8679 )
...
Fixes #8665
2020-02-25 22:23:37 +01:00
Marc Cornellà
3e9e385d98
battery: remove redundant grep calls in battery_pct function
2020-02-25 15:41:17 +01:00
Marc Cornellà
d959283898
avit: fix prompt sequence ( fixes #8678 )
2020-02-25 12:21:06 +01:00
Marc Cornellà
7290a08bf6
battery: fix floating point output in macOS
...
Fixes #8676
2020-02-25 11:56:26 +01:00
Marc Cornellà
40b013f5f1
lib: delete upgrade lock in upgrade_oh_my_zsh
...
Provides a different solution to #8332 and #8333
2020-02-24 20:27:21 +01:00
Marc Cornellà and GitHub
bc9fe7423f
Merge pull request #8651 from mcornella/random-theme-refactor
...
Add random theme and consolidate logic from init and themes plugin
2020-02-19 20:26:45 +01:00
Marc Cornellà and Fran Garcia
3d4890dcc0
Add blacklist variable for random theme
...
Co-authored-by: Fran Garcia <fran.miranda@gmail.com >
2020-02-19 20:00:22 +01:00
Marc Cornellà
f4b4a446ac
Polish themes plugin and error out if theme not found
2020-02-19 19:41:02 +01:00
Marc Cornellà and Mihai Serban
b297bf9296
Add themes in $ZSH_CUSTOM to the pool of candidates
...
Also add comments and unset leftover variables, and print only the
name of the theme loaded.
When looking for $ZSH_CUSTOM themes, the chosen algorithm is to add
the theme names to the pool disregarding the path, and then source
whatever theme is selected with the same logic as the init script,
which is to source first custom themes even if there is another
default theme of the same name.
Co-authored-by: Mihai Serban <mihai.serban@gmail.com >
2020-02-19 19:34:16 +01:00
Marc Cornellà
d76258ff55
avit: add years since last commit if appropriate
2020-02-19 18:19:46 +01:00
Marc Cornellà
77813a330b
avit: clean up theme code
2020-02-19 17:24:20 +01:00
Marc Cornellà
443ad88024
avit: replace custom prompt functions with OMZ ones
...
Fixes #8637
2020-02-19 16:53:32 +01:00
Marc Cornellà and GitHub
c1b798aff3
agnoster: fix bzr prompt with breezy installed ( #8646 )
...
* Change indentation to 2 spaces in prompt_bzr function
* Check if in a bzr repository and optimize bzr calls in prompt_bzr
2020-02-19 00:16:54 +01:00
Marc Cornellà
de261bd29c
af-magic: fix virtualenv prompt suffix
2020-02-18 22:28:58 +01:00
Marc Cornellà
d49397a01d
af-magic: fix dashed separator sizing and refactor
...
Fixes #8081
2020-02-18 19:18:23 +01:00
Marc Cornellà and GitHub
1381da15a4
arcanist: document aliases
2020-02-17 17:47:43 +01:00
Marc Cornellà
f17e0219fd
dotenv: fix prompt newline
2020-02-13 18:33:24 +01:00
Marc Cornellà
ebaccba6d8
battery: merge branch 'refactor-battery-plugin'
...
Closes #4726
Closes #4774
Closes #8275
2020-02-12 16:03:08 +01:00
Marc Cornellà
5f6f7b6e8d
Various syntax fixes and function naming equivalence
...
- Fix code style
- Fix local definitions
- Don't declare unnecessary variables
- Use `command` before grep
2020-02-11 21:25:38 +01:00
Marc Cornellà
39e61614f2
Clean up Linux battery commands and syntax
2020-02-11 21:25:38 +01:00
Marc Cornellà and Michael Wolman
1bd7a7ad21
Fix calculation for battery percentage ( #4774 )
...
Co-authored-by: Michael Wolman <michael.s.wolman@gmail.com >
2020-02-11 21:25:38 +01:00
Marc Cornellà
17428f3c9a
lib: load bash completion functions automatically
...
Fixes #8614
2020-02-11 20:16:43 +01:00
Marc Cornellà
561e7169ac
jump: fix for `marks' and CTRL+G key binding
...
- marks printed an error when $MARKPATH didn't exist or didn't have any marks
in it.
- The CTRL+G key binding overwrote an argument when it couldn't match it to
an existing mark.
2020-02-11 20:12:01 +01:00
Marc Cornellà
bc67a55fe8
jump: fix issues in plugin and document CTRL+G key binding
...
- Fixes `readlink -e` dependency which isn't supported in macOS
(fixes #3235 ).
- Uses native zsh wildcard expansion instead of calls to `ls`.
- Prepends commands with `command` and `builtin` to bypass aliases
and functions.
- Documents CTRL+G key binding to substitute mark name in the command
line with the mark path (https://github.com/ohmyzsh/ohmyzsh/pull/2045#issuecomment-22826540 ).
2020-02-11 19:41:43 +01:00
Marc Cornellà
05cae34676
Detect dependency plugins in candy-kingdom and kiwi themes
...
Fixes #5029
Fixes #5342
2020-02-11 17:43:59 +01:00
Marc Cornellà
77aa1795d2
Revert "fix: Update tmux plugin to use modern terminfo. ( #8582 )"
...
This reverts commit 69caf98cf7 .
2020-02-04 19:46:08 +01:00
Marc Cornellà
578b086011
Link to Actions page in GitHub Action badge
2020-02-04 13:07:40 +01:00
Marc Cornellà
df56d1ee1f
Rename GitHub Action to CI
2020-02-04 13:02:20 +01:00
Marc Cornellà
dcffc89580
aws: fix array assignment in asp function
...
Older zsh versions require this syntax change.
Fixes #8525
2020-01-30 13:32:55 +01:00
Marc Cornellà
a04728f168
init: force use of builtin test in is_plugin
...
Fixes #8545
2020-01-19 17:52:15 +01:00
Marc Cornellà
ce298d090b
yarn: use zsh-completions latest version (493984e)
2020-01-19 13:39:18 +01:00
Marc Cornellà and Robby Russell
6bac9eb103
extract: add lrz support ( #8500 )
2019-12-28 20:36:29 -08:00
Marc Cornellà
9bfcab7d10
osx: use return instead of exit in spotify function
2019-12-28 18:07:09 +01:00
Marc Cornellà
d99ddab0ca
codeclimate: add README
2019-12-27 02:51:54 +01:00
Marc Cornellà
c63fca8581
otp: add README and use clipcopy
2019-12-27 02:47:26 +01:00
Marc Cornellà
67b5bfaaa3
Rename some plugin READMEs for consistency
2019-12-27 02:37:27 +01:00
Marc Cornellà
8ea20fdca7
tmux-cssh: add README
2019-12-27 02:34:35 +01:00
Marc Cornellà
ca8a5a0a84
svn-fast-info: add README, reorg. plugin
2019-12-27 02:25:59 +01:00
Marc Cornellà
0c2f7514fc
sfffe: add README
2019-12-27 02:07:59 +01:00
Marc Cornellà
9655377b9e
rbfu: add README
2019-12-27 01:54:02 +01:00
Marc Cornellà
4fd2592007
paver: add README
2019-12-27 01:05:47 +01:00
Marc Cornellà
e891fbff9e
knife_ssh: small tweaks
2019-12-27 00:58:31 +01:00
Marc Cornellà
9c0ceb7a52
knife_ssh: add README
2019-12-27 00:56:03 +01:00
Marc Cornellà
132607447d
knife: add README and reformat completion file
2019-12-27 00:50:00 +01:00
Marc Cornellà
a952854c12
gnu-utils: add README, simplify plugin
2019-12-27 00:04:40 +01:00
Marc Cornellà
59930902e1
glassfish: add README
2019-12-26 23:23:23 +01:00
Marc Cornellà
7360d898d8
gas: add README
2019-12-26 23:12:17 +01:00
Marc Cornellà
38929084f9
fastfile: add README
2019-12-22 23:06:35 +01:00
Marc Cornellà
7b73c9ca1c
tmux: add ZSH_TMUX_UNICODE to README
2019-11-23 22:14:27 +01:00
Marc Cornellà and GitHub
76d6b02563
lol: fix yolo alias using https URL
...
Fixes #8418
2019-11-21 19:16:41 +01:00
Marc Cornellà and GitHub
3cc1fa4046
Fix non-POSIX conditional syntax
...
Fixes #8416
2019-11-21 19:10:30 +01:00
Marc Cornellà and GitHub
1c98b9cc38
Remove current directory from sys.path in python invocations ( #8408 )
...
* Remove current directory from sys.path in python invocations
2019-11-21 03:29:16 +01:00
Marc Cornellà and Robby Russell
b80b1a1e8b
Actions to take after repository migration is complete ( #8394 )
...
* Change project URL from robbyrussell to ohmyzsh org
* Update git remote to use ohmyzsh org repository
2019-11-20 17:26:18 -08:00
Marc Cornellà and GitHub
4888d4ad1a
Add Twitter follow badge to README
2019-11-18 00:07:06 +01:00
Marc Cornellà and GitHub
2810a37402
Add Discord badge to README
2019-11-17 23:53:42 +01:00
Marc Cornellà and GitHub
24726678dd
extract: keep *.gz files with pigz and gunzip
...
Fixes #8368
2019-11-09 12:37:41 +01:00
Marc Cornellà and GitHub
107e512c9e
Remove line below copyright so that GitHub shows LICENSE details
2019-11-06 21:22:15 +01:00
Marc Cornellà
1546e1226a
Fix badly resolved rebase conflict
2019-11-06 19:46:52 +01:00
Marc Cornellà
4a9cd68ea6
Merge branch 'jokester/override--ignore-submodules' ( #2214 )
...
Closes #2214
2019-11-06 19:42:08 +01:00
Marc Cornellà
b7e37cea90
Clean up ignore submodules logic in parse_git_dirty
2019-11-06 19:41:13 +01:00
Marc Cornellà and GitHub
687c50bdf9
fabric: fix awk "return not in function" error in completion
...
Fixes #8337
2019-10-30 23:12:45 +01:00
Marc Cornellà and GitHub
ce52ee0252
Add profiles documentation ( #8311 )
...
* Add profiles documentation
* Fix order and reword some things
2019-10-25 13:15:12 +02:00
Marc Cornellà and GitHub
c1e5cbed5b
Fix order and reword some things
2019-10-25 13:14:36 +02:00
Marc Cornellà and GitHub
9d790ea60c
fabric: add task descriptions to completion ( #5439 )
...
Co-authored-by: Marc Cornellà <marc.cornella@live.com >
2019-10-24 18:02:26 +02:00
Marc Cornellà and GitHub
cad48e38bf
Merge branch 'master' into fabric_task_description
2019-10-24 17:57:01 +02:00
Marc Cornellà and GitHub
225425fe09
Fix target_list creation. Supports fabric 1 and 2
2019-10-24 17:56:08 +02:00
Marc Cornellà
534ec60bfd
Set default git-config values known to fix repository issues
...
- core.autocrlf=false -> #4069
- fsck.zeroPaddedFilemode -> #4963
Fixes #4069
Fixes #4963
2019-10-21 17:00:04 +02:00
Marc Cornellà
05dfd0ae85
cargo: update completion to latest version (cdac4a8)
...
https://github.com/rust-lang/cargo/blob/cdac4a8/src/etc/_cargo
2019-10-19 17:51:28 +02:00
Marc Cornellà and GitHub
66290a39c8
supervisor: add README and update completion ( #8285 )
2019-10-19 17:35:13 +02:00
Marc Cornellà and GitHub
bd9cd052f1
docker: reformat README ( #8286 )
2019-10-19 17:30:04 +02:00
Marc Cornellà and GitHub
160a801bed
Clean up README
2019-10-19 17:29:46 +02:00
Marc Cornellà and GitHub
f48a40ee91
Reorganize stuff
2019-10-19 17:28:43 +02:00
Marc Cornellà and GitHub
87bd507fcf
pod: add README ( #8257 )
2019-10-15 23:27:31 +02:00
Marc Cornellà and GitHub
ca6b397783
meta: remove automatic bug label on bug reports
...
People sometimes use the bug report template for things that are support.
Maintainers will confirm whether it's a bug with the appropriate label.
2019-10-15 22:56:45 +02:00
Marc Cornellà and GitHub
f56b678888
fzf: check for dpkg before checking for fzf in debian
...
Fixes #8253
Co-authored-by: Mariusz B <mb@binary-offensive.com >
2019-10-15 16:51:51 +02:00
Marc Cornellà and GitHub
52f5878564
rust: add README ( #8242 )
2019-10-10 11:08:18 +02:00
Marc Cornellà and GitHub
bb97a9b3ec
Delete alias section
2019-10-10 11:07:33 +02:00
Marc Cornellà and GitHub
ba57b5c706
chruby: add README ( #8238 )
2019-10-09 18:13:13 +02:00
Marc Cornellà and GitHub
98cd133c4d
Reword and add extra information
2019-10-09 18:12:58 +02:00
Marc Cornellà and GitHub
66bd299bcd
compleat: add README ( #8236 )
2019-10-09 18:07:38 +02:00
Marc Cornellà and GitHub
7ea05bd500
Change description
2019-10-09 18:07:02 +02:00
Marc Cornellà
c9841f43b1
yarn: use zsh-completions latest version (87e1313)
...
Closes #7300
Closes #8115
Closes #8118
2019-10-09 15:12:00 +02:00
Marc Cornellà and GitHub
13d889470e
ufw: add README ( #8227 )
2019-10-07 18:08:35 +02:00
Marc Cornellà and GitHub
a3b63aa6ab
Reword
2019-10-07 18:08:14 +02:00
Marc Cornellà and GitHub
e2d5426f42
perl: add README ( #8215 )
2019-10-07 17:41:09 +02:00
Marc Cornellà and GitHub
896dd271c8
Some syntax changes and more function docs
2019-10-07 17:40:51 +02:00