1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-15 02:10:08 +00:00
Commit graph

5516 commits

Author SHA1 Message Date
Marc Cornellà
1d26e2ab6f trapd00r: convert perl script to zsh
Used color encodings from
https://metacpan.org/source/WOLDRICH/Term-ExtendedColor-0.224/lib/Term/ExtendedColor.pm
2018-08-20 17:37:26 +02:00
Michele Iacobone
abca62add1 Fix for external dependency in trapd00r theme (#5579) 2018-08-19 22:43:47 +02:00
Marc Cornellà
fceae90219
jenv: fix brew directory search
`brew --prefix jenv` doesn't ensure jenv is installed so we have to recheck if the
bin folder is still there.
2018-08-19 22:33:44 +02:00
Frederic Crozat
e4d2d27af4 Agnoster: solarized light variant (#4680)
* agnoster: do not hardcode black foreground.

This would allow easy customization when using light color schemes, like
solarized-light

* agnoster: implement light theme variant

Use same variable as in blinks theme, to detect if solarized theme used
is a light or dark one.
2018-08-19 22:28:37 +02:00
Scott Kidder
dc948826b2 ember-cli : Add alias for ember test --serve (#6492) 2018-08-19 22:14:55 +02:00
Rob Loach
0de3b29fd3 composer: Fix bin directory when Composer is not available (#6240)
* Fix for Composer's bin when Composer isn't global

When Composer isn't globally installed, the `composer global` call results in an error. This checks to see if Composer is available before making the call. When Composer isn't available, it will just manually set the directories.

* Fix Composer brackets in global bin directory

* composer: Apply feedback from ricpelo

This applies ricpelo's feedback at https://github.com/robbyrussell/oh-my-zsh/pull/6240#pullrequestreview-64253321

* composer: Fix path check syntax

* composer: test with $commands[] syntax
2018-08-19 21:46:22 +02:00
Sumit Sahrawat
b743ce9224 Add scu-* aliases for 'systemctl --user' commands (#6661) 2018-08-19 21:39:58 +02:00
Marc Cornellà
be65adc6c3
git-extras: update completion (2018-05-24 0f76863) 2018-08-19 21:36:21 +02:00
Marc Cornellà
3edd424af2
jenv: small fix 2018-08-19 19:43:35 +02:00
Marc Cornellà
873dc9cfb8 jenv: update README 2018-08-19 19:41:49 +02:00
Marc Cornellà
cb7a3e38aa Merge branch 'jburwell/jenv-plugin'
Closes #3406
Closes #4972
Closes #4523
Closes #5964
2018-08-19 19:36:52 +02:00
Marc Cornellà
3a822bb5fd jenv: refactor and optimize logic 2018-08-19 19:36:46 +02:00
John Burwell
e8b9958926 Add jenv plugin
Initializes jenv and provides the jenv_prompt_info funtion to add
Java version information to prompts.  This function is stubbed in
prompt_info_functions script to allow it to be safely called
regardless of whether or not the jenv plugin is loaded.

It also splits detection of the plugin/versions directory and bin directory
to suppport the way Homebrew splits the jenv bin and data directories
2018-08-19 19:12:24 +02:00
15cm
ff6b4c835b tmux: do not auto-load tmux inside of Emacs/Vim
When Emacs and Vim are launched from outside of an interactive shell,
$TMUX and $STY are not set; check for Emacs and Vim environment
variables instead.
2018-08-18 21:00:43 +02:00
Dennis Hägler
a52a5fb1f4 Remove the white space
The white space is causing an error and bundler cannot find any commands!
2018-08-16 22:41:29 +02:00
Peter Bittner
035d78120c Add Git alias for git diff --staged (#7064) 2018-08-15 19:44:06 +02:00
Marc Cornellà
af1709cfdc
kubectl: use kubectl to define aliases
This prevents conflicts with other utilities named k (see #6408).
2018-08-13 22:07:07 +02:00
Tushar Tiwari
1691cf8a99 Add alias for git add --verbose (#3167)
Add alias `gav='git add -v'`
fixes #6793
2018-08-13 21:11:25 +02:00
Marc Cornellà
f2f078a1bb
pass: update completion (2018-08-03) 2018-08-09 20:17:43 +02:00
Marc Cornellà
2c1ff85bb2
core: fix alias_value function
Fixes #5835
2018-08-09 19:49:02 +02:00
Marc Cornellà
052a6dbd16
docker-machine: add official completion
Fixes #6962
2018-08-09 19:24:03 +02:00
Thi
9624ce992e Add shell completion for Swift Package Manager (#7046)
This was generated by the Swift compiler 4.1.2 using the following
command:

swift package completion-tool generate-zsh-script
2018-08-09 19:10:32 +02:00
Alexander Kapshuna
5fbf912093 extract: whl files support (#7045) 2018-08-09 18:16:15 +02:00
Tom Milligan
3a31074d34 Update docker plugin from upstream docker/cli (#7018)
Update `docker` plugin from [docker/cli master](https://github.com/tommilligan/cli/blob/master/contrib/completion/zsh/_docker)

- bugfix for `docker update` autocompletion: https://github.com/docker/cli/pull/1232
- added `scope` subcommand: https://github.com/docker/cli/pull/1227/files
2018-08-09 17:37:47 +02:00
Marc Cornellà
60db5cdb58
tmux: fix invalid syntax on old zsh versions
First reported on f584de5930 (r29984052)
2018-08-09 17:19:40 +02:00
Michal Halenka
44473d785e Add doctl autocompletion (#6501) 2018-08-08 14:12:55 +02:00
Marc Cornellà
91d55dce11
bundler: update README with latest changes 2018-08-08 13:36:27 +02:00
Marc Cornellà
c781d708da dotenv: test and warn of incorrect.env syntax
Fixes #6337
2018-08-08 00:05:34 +02:00
Marc Cornellà
9ecde7f732 dotenv: call function on startup
Fixes #7017
2018-08-07 23:54:07 +02:00
Joseph Richey
8961a3794c plugins/go: Simplify/fix recursive golang format (#7027)
Per the [`go` command specification](https://golang.org/cmd/go/#hdr-Package_lists),
the `...` wildcard matches the empty string. This makes commands like
`go <action> . ./...` unnecessary: they should use `go <action> ./...`.

This also fixes a bug with the `gofa` shortcut, where it would emit an
error if called from a directory containing no go source files (but
having subdirectories that _did_ contain go files).
2018-08-07 22:54:45 +02:00
Jeff Dickey
0cc371181a use official heroku autocomplete (#6919) 2018-08-07 21:41:53 +02:00
Johan Kaving
850975eb78 Add support for ForkLift 3 (#6490)
This adds support for ForkLift 3, which uses a different
application id and also uses a popover instead of a sheet for
entering the directory to go to.

This also improves the handling of different versions of ForkLift,
by first choosing any currently running instance, and if none is
running starting the newest available version.

Fixes #6565.
2018-08-07 21:39:38 +02:00
Marc Cornellà
2991f237ae
bundler: allow aliases in bundle exec
This means that if you have, for example, `alias rs='rails server'`, you can
run `be rs` and have it expanded to `bundle exec rails server`.

Fixes #5818
2018-08-07 21:04:09 +02:00
Janosch Schwalm
19b925e741 use https everywhere (#6574)
* use https everywhere

* use https links on the files that are left

Also, removed some broken links and updated redirections.
2018-08-07 20:42:01 +02:00
Tony Lotts
e934624b32 Add function to search Dash.app (#2557)
* Add function to search Dash

* Pass all arguements instead of just the first

* Adding docset completion with help from @kapeli and [arx]
2018-08-07 18:14:38 +02:00
John Burwell
05713785b0 asdf: add Homebrew and completion support (#6749)
* Modifies the search logic for asdf to include Homebrew when it is
installed. The implementation is adapted from the pyenv plugin.
2018-08-07 18:10:35 +02:00
kapsh
91b771914b extract: check file extension as lowercase (#6158)
Fixes #6157
2018-08-07 00:45:24 +02:00
Marc Cornellà
76d3eedf7f tmux: fix regression after f584de5
Fixes #7041
2018-08-07 00:40:18 +02:00
Marc Cornellà
54055c4530 Merge branch 'apjanke/tmux-detabify-source'
Closes #4412
Fixes #4425
2018-08-03 22:13:58 +02:00
Marc Cornellà
f584de5930 tmux: refactor and simplify tmux function logic 2018-08-03 22:13:48 +02:00
Andrew Janke
19716a8e3d tmux: refactor
- Consolidates the switch-adding logic for readability.
- Replaces "[[ ... ]] && ..." with "if [[ ... ]]; then ..." in some
  cases to avoid a spurious nonzero exit status from _zsh_tmux_plugin_run.
- Puts error message on stderr instead of stdout
2018-08-03 22:09:06 +02:00
Andrew Janke
f33691fbb6 tmux: detabify source code
Also changes the tmux detection test to do an early exit if tmux is absent,
to reduce the indentation level of the main body of code.
2018-08-03 21:21:42 +02:00
Marc Cornellà
106f826075 Revert "add -F and -X to default $LESS environment variable (#6611)"
This reverts commit 9544316ef9.

This setting broke mouse / touchpad scroll on programs using `less` output
due to it not using the alternate screen buffer.

Fixes #7025
2018-08-02 21:21:20 +02:00
Thanh Ha
5fa7824ea5 git-prompt: fix error when multiple tags exist (#6998)
When a commit has multiple tags associated to it, the git-prompt will
throw the following error:

git_super_status:[:4: integer expression expected: v0.21.x\ntags/v0.21.5,
git_super_status:[:7: integer expression expected: origin/v0.21.x,
git_super_status:[:11: integer expression expected: origin/v0.21.x,
git_super_status:[:14: integer expression expected: v0.21.x
git_super_status:[:23: integer expression expected: v0.21.x

This is due to the prompt expecting the tag field to be a single word
with no spaces in between but if there are multiple tags the python
script returns a string with ', ' space separated list of tags.
This throws off the parser. The solution is to ensure that the python
script returns a space-less string ensuring the git-prompt parser to
properly parse the data.

Signed-off-by: Thanh Ha <zxiiro@linux.com>
2018-07-29 17:45:35 +02:00
MarkPochert
a24a0b1a8e Update z to latest version (#7021) 2018-07-29 17:43:15 +02:00
Lars Schneider
9544316ef9 add -F and -X to default $LESS environment variable (#6611)
The option '-F' causes 'less' to automatically quit if the contents fit 
the screen and the option '-X' causes 'less' to not clear the screen after 
quit. I think both options are generally useful for terminal applications.

They are in particular useful for Git as it runs all output through a
pager. Git will run 'less' with '-FRX' by default if the environment 
variable $LESS is not defined [1]. Since oh-my-zsh used to set $LESS to 
'-R', Git would not override this setting. Consequently, Git would 
display even a single line of output in a pager and the user would need
to explicitly quit that pager (see mailing list discussion [2]).

Therefore, lets change the oh-my-zsh default value for $LESS to '-FRX'.
This would be useful for oh-my-zsh Git users and likely for users of
other applications that use 'less' too.

[1] 36438dc19d/Documentation/config.txt (L819-L821)
[2] https://public-inbox.org/git/2412A603-4382-4AF5-97D0-D16D5FAAFE28@eluvio.com/
2018-07-24 22:55:48 +02:00
Marc Cornellà
a1448e9f8a example: move example theme to custom folder 2018-07-19 23:02:25 +02:00
Thi
6ca57e035c [plugins/xcode] Fix opening project using a wrong Xcode version (#6829) 2018-07-19 17:20:45 +02:00
Johan Kaving
626b30b2a3 Update git-flow-avh to 0.6.0 (#6498)
This updates the git-flow-avh plugin to the latest version
from https://github.com/petervanderdoes/git-flow-completion
(0.6.0 at the time of this commit).

This mainly adds support for the "git flow bugfix" command.

This PR replaces #4626 as well as #4705, both of which adds support for the bugfix command but doesn't use the official version from https://github.com/petervanderdoes/git-flow-completion

Fixes #4705
Fixes #4626
Fixes #5903
2018-07-19 16:53:19 +02:00
Jon Mosco
a3ab45db8b updating kube-ps1 to align with upstream changes (#6995) 2018-07-19 16:32:31 +02:00