221 Commits

Author SHA1 Message Date
logaritmisk 72435323d0 Merge remote-tracking branch 'source/master' 2017-02-07 13:58:54 +01:00
Mathias Fredriksson fcd942622d 1.5.0 2017-01-20 16:43:37 +02:00
Mathias Fredriksson 17e81f37ce Check and set prompt_opts when not using promptinit (#277)
The `prompt_opts` array only has an effect when the theme is loaded via
promptinit (`prompt pure`). Previously they were not set when pure was
loaded via `source /path/to/pure.zsh` as is the case with e.g. antigen,
antibody, etc.

This commit attempts to detect whenever pure is not autoloaded via
promptinit and manually sets the options in `prompt_opts`.

Fixes #276.
2017-01-20 09:59:40 +02:00
Mathias Fredriksson e06fd4af63 Check for git arrows asynchronously (#272)
Previously `command git rev-list --left-right --count HEAD...@'{u}'`
was run in a subshell, and upon `git fetch` completion, run once again.
This is now done as an async job (`prompt_pure_async_git_arrows`) and
is also called within `prompt_pure_async_git_fetch` to return the arrow
status immediately after `git fetch` has completed, this saves us from
waiting until the git fetch is done to only then execute a new async
job to check the arrow status.

Changes in git arrow / git dirty status are also handled better and
`prompt_pure_preprompt_render` is not called unless they actually
changed.
2017-01-19 17:30:19 +02:00
Mathias Fredriksson 3dd645970e Evaluate $PROMPT at render time (#274)
This allows $PURE_PROMPT_SYMBOL to be modified at any point.
2017-01-18 23:29:19 +07:00
Mathias Fredriksson 6ec0029ac5 Update zsh-async to 1.5.0 (#271) 2017-01-17 17:46:32 +07:00
Mathias Fredriksson ee0c6a445a Disable interactive passwords in SSH for git fetch (#269)
This commit fixes a problem where SSH (used by Git) is able to
interactively prompt for a password that can not be redirected to
`/dev/null`.

An interactive SSH password prompt inside the async worker does three
things:
1. Leave the `git fetch` hanging due to waiting for input
2. Capture part of the input to the async worker, thus creating
   nonsense commands
3. Use some characters from future async jobs as a password and
   attempts to login

Even if this was fixed in `zsh-async`, it is still good to disable the
password prompt to avoid issue numero uno.
2017-01-16 10:10:36 +07:00
Xiao-Ou Zhang caafdf582a Change prezto url to the active prezto repo (#268)
Because @sorin-ionescu has been disappeared for about one year, the previous prezto repo is dead now. New actively maintained repo has been moved to zsh-users. See details on [this issue](https://github.com/sorin-ionescu/prezto).
2017-01-13 10:17:41 +07:00
Mat Schaffer 6dadef7093 Simplify zplug instructions in readme (#267)
Setting defer:0 is not necessary since this is the default zplug value.

Order is insignificant as long as zsh-async has been loaded before the pure precmd where the async worker is initialized.
2017-01-04 15:38:11 +02:00
Mathias Fredriksson 7f27952888 Change integration examples from commands to configuration lines (#265) 2016-12-19 17:30:56 +01:00
Eli Uriegas 748bf06f40 Add zplug install instructions (#261) 2016-12-19 13:14:40 +01:00
Mathias Fredriksson 71f9326028 Readme improvements (#259) 2016-12-17 17:27:44 +01:00
Antoine Cotten d38a8cc4e7 Add install instructions for Zim (#262) 2016-12-17 17:24:14 +01:00
Mathias Fredriksson 1715edafcf Add issue template (#260) 2016-12-12 22:46:11 +01:00
Mathias Fredriksson 26fff0cefa 1.4.1 2016-12-12 19:06:11 +02:00
Mathias Fredriksson 787cab6d89 Update zsh-async to fix issue with zsh 5.3 2016-12-12 09:56:09 +02:00
Ivan Shapovalov a546b56039 Mention intelfx/pure fork in readme (#247) 2016-11-17 14:14:49 +02:00
Kevin Martensson ecae2cc16c HyperTerm => Hyper 2016-10-14 16:02:45 +02:00
Mathias Fredriksson 5ccc336b35 Restore prompt_subst setopt when rendering prompt (#231)
We store the user setting for `prompt_subst` before changing it in the
local scope of `prompt_pure_preprompt_render`. This allows us to restore
it when we render the real prompt (`PS1`) through `zle .redraw-prompt`.

Fixes #230.
2016-09-20 16:56:12 +03:00
Mathias Fredriksson d826130a1a Update zsh-async to fix multi-space path bug
If a directory was named `hello  world` (two spaces) this would
previously have resulted in pure trying to `cd` into `hello world` (one
space) to perform git actions. This issue was fixed in zsh-async 1.3.0.

There might also have been other cases, e.g. a newline in the directory
name.
2016-09-02 20:22:01 +03:00
Joel Kuzmarski 9501ac14ae Use ; instead of && for promptinit (#227)
Closes #226
2016-09-01 11:48:03 +03:00
Mathias Fredriksson 780d1a5a08 Prevent parameter expansion in preprompt
By unsetting `prompt_subst` for the `prompt_pure_preprompt_render`
function we can avoid e.g. git branch names with a `$`-sign to be
expanded as parameters.

Fixes #224 and #225 (as a result of 6cbd49a).
2016-08-25 19:00:23 +03:00
Mathias Fredriksson 753ef290f8 Revert "Fix double variable interpolation in branch name"
This reverts commit 6cbd49ad5c because it
broke users prompts if they didn't have `prompt_subst` set.
2016-08-25 18:49:07 +03:00
Mathias Fredriksson 6cbd49ad5c Fix double variable interpolation in branch name
This commit prevents a git branch named e.g. `$TMPPREFIX` from being
expanded into the actual contents of the `$TMPPREFIX` variable.

Fixes #224.
2016-08-25 12:22:38 +03:00
Vasiliy ed58b1873a Fix link to bash port (#219) 2016-07-29 20:51:00 +02:00
Mathias Fredriksson 211b49481e 1.4.0 2016-07-27 18:04:27 +03:00
Mathias Fredriksson e3f1f87fc3 Compare expanded preprompt when rendering (#214)
* Compare expanded preprompt when rendering

The expanded content of the preprompt was not considered previously when
checking if the content had changed. E.g. path changes were never detected.
The typeset (definition) and assignment are performed on separate lines as it
would cause issues otherwise.

Fixes #213.
2016-07-27 12:04:49 +03:00
Joris Berthelot b3adab82c0 Update async.zsh (#218) 2016-07-27 12:01:14 +03:00
Sindre Sorhus 306aa90e54 update screenshot 2016-07-25 12:21:05 +02:00
Daniel Tschinder 95ee3e7618 Correct link to Droid Sans Mono Font (#216) 2016-07-13 11:25:38 +03:00
Sarbbottam Bandyopadhyay 7d96270704 Add async.zsh to the download step in the readme 2016-04-14 14:26:40 +07:00
Sindre Sorhus c6564a4f7c Merge pull request #205 from fvargas/master
Move footnote number
2016-03-26 15:40:02 +07:00
Felipe Vargas 45aeffd2d1 Move footnote number 2016-03-26 04:33:08 -04:00
Sindre Sorhus 9283d6a7bf Merge pull request #204 from fvargas/master
Add note about screenshot color space
2016-03-26 15:24:20 +07:00
Felipe Vargas 8c92e39062 Add note about screenshot color space 2016-03-26 04:16:19 -04:00
Sindre Sorhus 00e0571f67 Merge pull request #201 from fvargas/master
Update and simplify oh-my-zsh integration instructions
2016-03-19 17:50:39 +07:00
Felipe Vargas 67f4c213d2 Update and simplify oh-my-zsh integration instructions 2016-03-17 05:49:53 -04:00
Sindre Sorhus 74dbfba33e readme - mention that the git check is done asynchronously #187 2016-03-04 18:23:58 +07:00
Sindre Sorhus fb4c37dad3 Merge pull request #196 from sindresorhus/emacs-fixes
Emacs fixes for garbled terminal output
2016-02-16 21:24:44 +07:00
Mathias Fredriksson a0a3e88480 Use zle reset-prompt to restore cursor instead of relying on ansi codes
This fixes #191 and can be considered a more robust method of restoring cursor
position.
2016-02-15 19:01:22 +02:00
Mathias Fredriksson 79b1514fd4 Disable setting title in emacs terminal (not supported)
This fixes #188 and takes place of #190, at least for now.
2016-02-15 19:01:17 +02:00
Sindre Sorhus 9e4955cf91 Clarify Prezto usage
Closes #182
2016-01-29 23:02:14 +01:00
Carlos Alexandro Becker 9f197c864c Close #192 PR: Added console language where needed. 2016-01-29 21:29:32 +01:00
Mathias Fredriksson 45ef73ec34 Merge pull request #186 from edouard-lopez/patch-1
Add Ports section to readme
2016-01-20 19:24:15 +02:00
Édouard Lopez ec525b2563 move Ports below FAQ 2016-01-20 14:40:34 +01:00
Édouard Lopez e6a532e367 fix typo thank to @mafredri 2016-01-19 13:55:35 +01:00
Édouard Lopez ba07d37c9b add Shell Ports section 2016-01-19 11:24:44 +01:00
⌁ sɪɴᴅʀᴇ sᴏʀʜᴜs ⌁ 6d480638b7 Merge pull request #181 from caarlos0/patch-1
Added antibody instructions
2016-01-13 17:54:31 +01:00
Carlos Alexandro Becker 3ff7d01ee5 Added antibody instructions
[antibody](https://github.com/getantibody/antibody) does basically the same thing as antigen, but it is faster.

Commands are similar, except for the `theme` command that doesn't even exist in antibody.
2016-01-13 11:30:42 -02:00
Sindre Sorhus 264658de37 Merge pull request #178 from jedahan/master
Use builtin cd, in case cd::cd has been redefined
2015-12-04 11:39:28 +01:00