Commit Graph

6611 Commits

Author SHA1 Message Date
Max Gautier 509a554900 git: use color auto for ref names in git log ()
Allow the ref names to have differents colors if they are remote refs
or local refs, and another color for HEAD
(use the same coloring scheme as --decorate option)
2018-09-12 19:35:10 +02:00
Luis Ferrer-Labarca 5ee93f4f15 git: add git rm aliases ()
* grm for 'git rm'
* grmc for 'git rm --cached'
2018-09-12 19:08:12 +02:00
Yago Nobre 0db7da0cd5 git: add push force aliases ()
* gpf to --force-with-lease
* gpf! to --force
2018-09-12 19:05:57 +02:00
Simen Bekkhus a3afeca3eb git: add gbD alias to force-delete branch () 2018-09-12 18:38:21 +02:00
Garth Mortensen bf05bb3a1b dash: update dash bundle identifier () 2018-09-12 18:13:13 +02:00
Jefferson F. Pires d5f0a0a413 git: add glols alias for glol --stat () 2018-09-12 16:57:48 +02:00
Gant Laborde 69ba6e4359 git: add alias to `git stash --all` ()
Stash tracked, ignored and untracked files. Leaves the working directory absolutely clean.
2018-09-12 16:28:59 +02:00
Poyoman 3d2542f41b git: add pull rebase --autostash aliases () 2018-09-12 15:52:42 +02:00
Garth Mortensen 1487a2ad84 urltools: add readme () 2018-09-11 20:22:55 +02:00
Matthieu PETIOT d4cae83152 osx: add function to remove .DS_Store files ()
rmdsstore removes .DS_Store files recursively in the current directory by default, or for the given directories.
2018-09-10 20:10:31 +02:00
Marc Cornellà fe5fe81c8c
lib: quote arguments to env_default
Fixes 
2018-09-09 19:50:23 +02:00
Iulian Onofrei 08a2808636 Fix incorrect error message when running bi without having bundler installed () 2018-09-09 00:39:23 +02:00
Marc Cornellà f75d096c1a
lib: small change to git_compare_version
Fixes 
2018-09-08 21:35:03 +02:00
Maxime Brunet bb908495de fzf: Fix shell directory for archlinux package ()
* fzf: Fix shell directory for archlinux package

* fzf: Don't clutter PATH if fzf already available

* brew has it available via symlink in /usr/local/bin
* Fedora and Arch packages have it place in /usr/bin

* fzf: Fix archlinux guess by using release file

* fzf: unset leftover variables
2018-09-08 15:31:13 +02:00
Michele Bologna f73c29a820 Feat: add Salt completion plugin ()
* Feat: add Salt completion

* Docs: add README
2018-09-06 11:34:37 -07:00
Maxime Brunet 86542dcd86 Add fzf plugin () 2018-09-04 22:25:45 +02:00
Marc Cornellà 69e637c355
fasd: use xdg-open in o alias back again
Fixes 
2018-09-03 17:13:18 +02:00
Cristian Măgherușan-Stanciu @magheru_san e416990442 fasd: drop-in replace the autojump j alias () 2018-09-03 17:09:31 +02:00
Ross Lafferty 0853b74fef jump: fix printf path output ()
Using the `jump` plugin, using the `marks` command will yield this output:
```
$ marks
desktop marks:printf:5: bad option: ->
dotfiles        marks:printf:5: bad option: ->
home    marks:printf:5: bad option: ->
```

the `marks` function uses `printf` with `->` and I believe `-` is used by `printf` for left-justification.  changing this to `-- "->"` seems to render the appropriate output.

```
desktop -> /Users/uname/Desktop
dotfiles        -> /Users/uname/.dotfiles
home    -> /Users/uname
```
2018-09-01 13:37:05 +02:00
Marc Cornellà 9f1ffc64f1
vi-mode: reset-prompt if zle is active (TRAPWINCH)
Fixes zle errors when resizing:

  TRAPWINCH:zle: widgets can only be called when ZLE is active
2018-08-31 21:18:18 +02:00
Fadi Hadzh dc8811f817 fix nmap vuln category name () 2018-08-29 23:06:11 +02:00
Serhii Kuts 94df503863 Update kubectl.plugin.zsh () 2018-08-29 12:01:40 -07:00
Nick Diego Yamane 143cc8f901 Fix rvm-prompt usage in fino* themes ()
* theme/fino: Check rvm-prompt is installed before to try to use it

Signed-off-by: Nick Diego Yamane <nick.diego@gmail.com>

* theme/fino-time: Check rvm-prompt is installed before to try to use it

Signed-off-by: Nick Diego Yamane <nick.diego@gmail.com>
2018-08-29 12:01:10 -07:00
Balint Gyapjas 285b540167 vi-mode show indicator on zle-line-init and SIGWINCH () 2018-08-29 12:00:35 -07:00
Janosch Schwalm 3cd8eaf9bb execute mvnw with "mvn" when mvnw-file is present ()
* executing mvnw, when mvnw-file exists
indriectly enable autocompletion for mvnw

* inform the user :)
2018-08-29 12:00:06 -07:00
Janosch Schwalm 84aa274604 executing gradlew, when gradlew-file exists () 2018-08-29 11:59:27 -07:00
Konstantin Gribov 2b6434e879 Fixed `fwl` function in `firewalld` plugin when `sources` used ()
`firewall-cmd --get-active-zones` returns something like this:

```
dmz
  sources: ipset:dmz-hosts
public
  interfaces: eth0
```

if zone binding is based on source ips, so strings with `sources: ...` should be excluded along with `interfaces: ...` to get zones list.
2018-08-29 11:57:02 -07:00
Vinod Damle e7c9bf8d66 kubectl: add alias for `kubectl cp` () 2018-08-29 11:56:30 -07:00
Matthew Murphy 8ec0937653 Update golang.plugin.zsh ()
add alias to cd to $GOPATH, $GOPATH/src, $GOPATH/bin
2018-08-29 11:55:23 -07:00
Aiden 5cc6de67bd Update brew.plugin.zsh ()
add aliases for `brew pin` and `brew list --pinned`
2018-08-29 11:53:24 -07:00
Dan O'Brien 39221643b0 Add aliases for kubectl nodes ()
* Add aliases for kubectl nodes

* change to have 'o' at the end.

My teammate noticed there's no namespacing shortcuts either and will be doing a PR on them with kgna.
2018-08-29 11:51:50 -07:00
Samuel Lelièvre 77d75d7fcd Clarify random theme setting ()
Clarify random theme setting, in particular how to know
which theme was loaded if picked at random.
2018-08-29 11:50:52 -07:00
Kris Kalavantavanich e93378aacd [plugins/git] Updated git clone alias ()
* Updated git clone alias

`git clone --recursive` has been deprecated in favor of `--recurse-submodules`.  
See: https://stackoverflow.com/questions/3796927
2018-08-29 15:18:20 +02:00
Ryan Stull 2c1100c0e5 Updating 'sbcl' to 'sbcln' ()
Changing 'sbcl' to 'sbcln' so it doesn't collide with 'Steel Bank Common Lisp', a popular lisp implementation.
2018-08-29 15:15:11 +02:00
Marc Cornellà caa936593a
Merge pull request from mcornella/refactor-trapd00r-theme
Refactor trapd00r theme
2018-08-25 14:00:19 +02:00
Franklin Yu 36808ff61e [plugin/chruby] Add "system" to completion list
Detect system Ruby in default PATH, and provide "system" completion if
Ruby is found.
2018-08-23 20:46:23 -04:00
Joel Wallis Jucá 652356b9b9 git: add the `git show` alias `gsh` () 2018-08-23 22:04:42 +02:00
Marc Cornellà 2bb10441da
nyan: deprecate plugin with removal notice
Fixes 
2018-08-23 20:28:20 +02:00
jack 314f9dfcb3 github: fix new_gh to force-add .gitignore () 2018-08-23 20:01:01 +02:00
Marc Cornellà b70a703a09 trapd00r: clean up the script 2018-08-20 18:15:49 +02:00
Marc Cornellà e972624997 trapd00r: simplify logic and optimize for loop
This version splits the `$PWD` by the slashes and prints the path
directory by directory, printing the separators as before.
2018-08-20 18:03:41 +02:00
Marc Cornellà b4c8b60bb4 trapd00r: change more slowly between yellows
Also refactor the logic
2018-08-20 17:55:22 +02:00
Marc Cornellà 3d1719c618 trapd00r: optimize reset of foreground colors 2018-08-20 17:50:11 +02:00
Marc Cornellà 4774bc62d5 trapd00r: look for 256-color support, not $DISPLAY
Checking if the terminal supports 256 colors is better suited for
our purpose. Checking if `$DISPLAY` is set doesn't tell us if our
colors will be displayed correctly.
2018-08-20 17:45:36 +02:00
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 () 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 ()
* 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 () 2018-08-19 22:14:55 +02:00
Rob Loach 0de3b29fd3 composer: Fix bin directory when Composer is not available ()
* 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