Commit graph

4,216 commits

Author SHA1 Message Date
Hong
4e8924284a Use OSTYPE instead of uname whenever possible for better speed. (#5496) 2016-10-10 22:24:30 +02:00
Hong
3097b4ed77 Take advantage of LS_COLORS for the color of completion if GNU ls is used. (#5510) 2016-10-10 20:40:17 +02:00
Michel Filipe
57f0d4436c remove duplicate alias (#5508)
Removing one "apt-get autoremove" alias because it is duplicated.
2016-10-09 19:36:47 +02:00
Florian Boulay
ccd34d0fad Add m4a format in the common aliases plugin (#5502)
The m4a file format can be opened in the command line with mplayer
2016-10-08 08:26:10 +02:00
diego
33ae18c8a5 Add non 0 exit code for missing jump targets (#5500)
This allows for the user to combine the jump command with something else. In my example cd and jump are now combined like this:

```bash
jumpcd() {
        jump $1 > /dev/null || cd $1
}
alias cd="jumpcd"
```
2016-10-07 23:54:54 +02:00
Marc Cornellà
a500920669 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à
63def96745 Merge pull request #5463 from slavaGanzin/globalias
Fixes #4834
2016-10-04 14:50:28 +02:00
Marc Cornellà
48cbc0f6dd 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à
a9f0d6ee39 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
slavaGanzin
0422817aa0 fix comment 2016-10-04 14:05:41 +03:00
slavaGanzin
0bb09bc778 README for globalias 2016-10-04 14:03:37 +03:00
slavaGanzin
735955a6d6 specify globalias modes 2016-10-04 12:21:18 +03:00
Marc Cornellà
7e716c53c0 Merge branch 'set-ls_colors-if-not-available'
Based on #5488.
2016-10-04 01:30:21 +02:00
Marc Cornellà
5448843ace Fix style of theme-and-appearance.zsh 2016-10-04 01:30:01 +02:00
Marc Cornellà
72561257ea 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à
8c8070b5ae Use $commands[] to check for command existence 2016-10-04 01:27:19 +02:00
Hong Xu
299a136d0f set better default colors for GNU ls instead of none.
GNU coreutils ship a color setup command by default which can be used to
set a good default color theme for ls:

  https://www.gnu.org/software/coreutils/manual/html_node/dircolors-invocation.html
2016-10-04 01:06:36 +02:00
Marc Cornellà
0e0c158c0b 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
Mats Faugli
dc2679e550 Add jgitflow maven goals (#5489) 2016-10-04 00:47:59 +02:00
Michał Ordon
e960783500 Add an alias for React Native Link command (#5491) 2016-10-04 00:37:35 +02:00
Marc Cornellà
337ec4e691 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à
9460653d41 Add README for the cargo plugin 2016-10-04 00:17:38 +02:00
Zaki Manian
6c132132c2 Add completion for cargo, the rust build tool
Copy of the official repository:
https://github.com/rust-lang/cargo/tree/master/src/etc

Signed-off-by: Marc Cornellà <marc.cornella@live.com>
2016-10-04 00:15:46 +02:00
Laurent Commarieu
7affc00294 feat(nomad): add common commands and new readme 2016-10-04 00:03:14 +02:00
Laurent Commarieu
403ed235a0 feat(plugin): add nomad 2016-10-04 00:03:14 +02:00
Marc Cornellà
31f601a82b Change confusing 12h-time in xiong-chiamiov themes (#5483) 2016-10-04 00:02:05 +02:00
FireWave
55fab13eb2 Change confusing 12h without AM/PM to a clean 24h display.
It was not possible to simply add AM/PM since strftime return blank for %p %P
2016-10-03 15:00:39 -04:00
FireWave
643766e91e Revert "Change confusing 12h-time without AM/PM to system-localized time"
This reverts commit 06d52a6038.
2016-10-03 14:58:51 -04:00
Henrik Johansson
74cac44201 Added simple support for Cargo -
the Rust build system
2016-10-03 19:09:59 +02:00
Fabian Wolff
bfb2805d0e Convert "if then" statements to "if; then" one-liners 2016-10-03 12:05:10 +02:00
Fabian Wolff
4bf41abf3e Use rmdir instead of rm -r 2016-10-03 12:05:10 +02:00
Fabian Wolff
0cda7cd8c0 Implement a locking mechanism to avoid multiple update prompts (fixes #3766) 2016-10-03 12:05:10 +02:00
savimat
e23a8bbe96 Add alias for signed git commit with message (#5390)
Signed-off-by: Mat Munn <mat@savi.com.au>
2016-10-03 01:11:26 +02:00
Marc Cornellà
4fe421425c Fix small copy-editing mistake in archlinux README 2016-10-03 01:04:16 +02:00
Marc Cornellà
d24ba7aa7a Merge branch 'Majora320-master'
Closes #5460
2016-10-03 01:02:49 +02:00
Moses Miller
422d025e02 Updated README of the archlinux plugin 2016-10-03 01:02:44 +02:00
Moses Miller
98eb4f10d1 Add pacaur compatibility to archlinux plugin + refactor 2016-10-03 01:02:44 +02:00
Juraj Fiala
dda5bbb225 Added pacaur aliases
This commit removes most of its contents: it just leaves the
contribution signature. The rest is obsolete and superseeded
by #5460, but the contribution is still valuable.

Related: #4263.

Signed-off-by: Marc Cornellà <marc.cornella@live.com>
2016-10-03 01:02:18 +02:00
Florian Wilhelm
2129c0b1b7 Add aliases for docker-compose logs (#5475) 2016-10-02 16:34:54 +02:00
Adrian Petrescu
7d86e434d3 Add /usr/local/bin to autoenv search path (#5481)
The current list of directories to search for autoenv on misses the default location on Ubuntu systems if you just do a normal `pip install autoenv` - [it will place](https://github.com/kennethreitz/autoenv/blob/master/setup.py#L16) `activate.sh` in `/usr/local/bin` unless you manually override the `--prefix` or something.

The `/usr/local/opt/autoenv` is fine for macOS/homebrew installations but it would be nice not to have to manually patch on Linux :)
2016-09-30 23:39:32 +02:00
FireWave
e3ee6ea4db Change confusing 12h-time without AM/PM to system-localized time 2016-09-30 14:12:03 -04:00
Marc Cornellà
eb01d651e5 last-working-dir: add README 2016-09-30 20:11:17 +02:00
Marc Cornellà
27bcdd717d last-working-dir: don't jump if not in $HOME 2016-09-30 20:11:17 +02:00
Marc Cornellà
8d53aa713e last-working-dir: clean up source 2016-09-30 20:11:17 +02:00
Manuel Hutter
2ebf8a7bc6 Add missing newline to end of spotify status output (#5480) 2016-09-30 19:54:27 +02:00
Allan Lewis
114ec3420c git.plugin.zsh: Don't run Git hooks when making a WIP commit (#4751)
When making a WIP commit, we generally just want to save the state of the
current branch temporarily, maybe because we want to push our work for backup
purposes, or change branch to work on something else. Therefore, it's generally
undesirable to run Git hooks, which might do things like run linters, because
we probably don't care if our WIP has lint errors.
2016-09-30 13:45:28 +02:00
Marc Cornellà
6d36f9cc81 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à
89d607e4ac extract: add README 2016-09-30 00:38:21 +02:00
Marc Cornellà
e75ad777fa extract: add file extensions to extract completion 2016-09-30 00:38:21 +02:00
Marc Cornellà
54dafee53e 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