Julien Bisconti
a1d007ce97
avoid double slashes in dest path
2015-12-01 19:52:17 +01:00
Mathias Fredriksson
f6625c2a4e
Close #175 PR: Refresh pure screenshot.
2015-11-28 09:50:28 +07:00
Mathias Fredriksson
22c4f0b403
1.3.0
2015-11-17 22:14:22 +02:00
Mathias Fredriksson
dc30cc6b03
Update bundled zsh-async to 1.1.0
2015-11-17 22:11:42 +02:00
Mathias Fredriksson
9de635ee10
Close #171 PR: Attempt to detect user initiated git fetch. Fixes #162
2015-11-18 02:20:23 +07:00
Sindre Sorhus
95e7fd7de7
Merge pull request #164 from sindresorhus/set-title-function
...
Deduplicate code by creating a set_title function
2015-10-02 17:06:02 +07:00
Mathias Fredriksson
a52e8a9469
Deduplicate code by creating a set_title function
2015-09-22 13:25:25 +03:00
Mathias Fredriksson
dec025315e
Update oh-my-zsh instructions
2015-09-16 19:11:46 +03:00
Mathias Fredriksson
49cd9360a2
1.2.0
2015-08-25 21:39:27 +03:00
Mathias Fredriksson
f747acf4ec
Bump zsh-async to 1.0.0, prevents mixed stdout/stderr
2015-08-25 18:16:45 +03:00
Mathias Fredriksson
8b2dd63594
Merge pull request #153 from sindresorhus/preprompt-update-fix
...
Render new preprompt with previous one in mind, fixes #145
2015-08-11 23:35:06 +03:00
Mathias Fredriksson
f3969755ae
Render new preprompt with previous one in mind
...
This fixes #145 by calculating how many lines the previous preprompt
assumes in the current terminal window and either erases preprompt lines
that are no longer relevant or allocates more space for the new
preprompt.
2015-07-29 16:04:22 +03:00
Sindre Sorhus
fa7005f6b5
Merge pull request #149 from mafredri/pure-nitro
...
Refactor to avoid subshell usage, prefer variables
2015-07-27 23:14:24 +02:00
Mathias Fredriksson
924b6291ab
Refactor to avoid subshell usage, prefer variables
...
Performance tests indicate using a lot of subshells can lead to bad
performance.
2015-07-27 23:27:45 +03:00
Mathias Fredriksson
ba1f064357
Close #147 PR: Preserve preprompt on Ctrl+L. Fixes #145
2015-07-18 17:27:18 +02:00
Mathias Fredriksson
2509a1fac0
Remove cr from prompt_opts, fixes #127
2015-07-16 10:15:56 +03:00
Mathias Fredriksson
7f90797e8d
Merge pull request #142 from zmwangx/string-length-fix
...
prompt_pure_string_length: no need to subtract one
2015-07-15 15:32:56 +03:00
Zhiming Wang
4a35b8002b
fix last-char-of-preprompt-on-last-column condition
...
See https://github.com/sindresorhus/pure/pull/142#issuecomment-120961475 .
2015-07-14 17:52:33 -07:00
Zhiming Wang
57bfd997a5
move subtraction by one out of prompt_pure_string_length
...
prompt_pure_string_length is used for calculating the length of the
preprompt, but the preprompt doesn't contain a newline, so we shouldn't
subtract by one in prompt_pure_string_length.
What should happen instead is that when we subtract one from the length
when we calculate the number of lines the preprompt occupies.
2015-07-14 17:50:31 -07:00
Mathias Fredriksson
b1b44b3204
Merge pull request #144 from zmwangx/rename-prompt-to-preprompt
...
prompt_pure_preprompt_render: rename prompt to preprompt
2015-07-15 03:23:58 +03:00
Mathias Fredriksson
a94ff2ff6b
Default to 0 for git rev-list left and right. Fixes #137 .
2015-07-14 23:09:32 +03:00
Alexander Pyatkin
579af2425b
Close #140 PR: Add git arrows customization. Fixes #139 .
2015-07-13 12:36:37 +02:00
Zhiming Wang
5f5c4d4856
prompt_pure_preprompt_render: rename prompt to preprompt
...
Preprompt and prompt are two distinct concepts in pure: the preprompt is
where the directory and git info live, whereas the prompt (`PROMPT`) is
as pure and simple as `%(?.%F{magenta}.%F{red})❯%f`.
In the `prompt_pure_preprompt_render` function though, prompt and
preprompt are used interchangeably, which makes it confusing the first
time one reads it. (The lines `[[ "${prompt_pure_last_preprompt}" !=
"${prompt}" ]]` and `prompt_pure_last_preprompt=$prompt` perfectly
illustrate the interchangeable use and the potential point of
confusion.)
Therefore, this commits corrects the problem by renaming the `prompt`
local variable to `preprompt`, and updating comments accordingly.
2015-07-13 02:11:16 -07:00
Mathias Fredriksson
29ab6e737f
1.1.1
2015-07-04 11:49:20 +03:00
Mathias Fredriksson
5f5b990e2b
Disable prompt expansion for running command
2015-06-16 14:54:43 +03:00
Mathias Fredriksson
a099059f15
Merge pull request #130 from zmwangx/rename-variables-for-readability
...
Rename two internal variables for readability
2015-06-14 11:26:40 +03:00
Zhiming Wang
fe6f11960c
rename two internal variables for readability
...
* `prompt_pure_git_delay_dirty_check` holds the (finish) timestamp of
the last dirty check (if the dirty check took more than 2 seconds);
renamed to `prompt_pure_git_last_dirty_check_timestamp`.
* Local variable `dirty_check` holds the elapsed time in seconds since
the last dirty check (if the timestamp is set); renamed to
`time_since_last_dirty_check`.
2015-06-13 03:45:23 -07:00
Mathias Fredriksson
58167f1879
Use standard [[ ]] for conditional and add clarifications
2015-06-13 13:21:44 +03:00
Mathias Fredriksson
b55776e7aa
fix: do the PURE_GIT_PULL check in the correct place
2015-06-02 20:16:27 +03:00
Sindre Sorhus
77e0633639
1.1.0
2015-06-01 16:02:35 +02:00
Mathias Fredriksson
fbca62ea3f
Close #124 PR: Show hostname in terminal title if session is over ssh.
2015-06-01 13:27:44 +02:00
Sindre Sorhus
df9f2ec38d
Merge pull request #125 from sindresorhus/dirty-check
...
Use slightly faster git dirty check for untracked files
2015-06-01 13:26:50 +02:00
Mathias Fredriksson
016b5ec7db
Use slightly faster git dirty check for untracked files
2015-06-01 13:09:15 +03:00
Mathias Fredriksson
3d807f5d54
import bug-fix release from zsh-async, fixes async job flushing
2015-05-30 18:41:21 +03:00
Mathias Fredriksson
235de91de8
readme: faq clarificaitons
2015-05-28 21:11:19 +03:00
Mathias Fredriksson
c1db3eb2dd
readme: add zpty error to faq with explanation and potential solutions
2015-05-28 20:03:04 +03:00
Mathias Fredriksson
38c381039e
readme: update instructions for antigen and oh-my-zsh. remove incompatible async.plugin.zsh
2015-05-28 20:01:30 +03:00
Mathias Fredriksson
d766c8b8d9
use cd -q to prevent hooks from firing
2015-05-27 19:30:12 +03:00
Mathias Fredriksson
e46c59ff45
prevent git status leakage when testing if dirty
2015-05-27 18:55:39 +03:00
Mathias Fredriksson
a57987499b
fix paths that are split due to spaces in directory names
2015-05-27 18:44:40 +03:00
Sindre Sorhus
04212522f3
add @mafredri as a maintainer
...
🍻 Thanks for all the good work! :)
2015-05-23 21:07:58 +02:00
Sindre Sorhus
8132bc5efd
1.0.0
2015-05-23 14:55:17 +02:00
Sindre Sorhus
be77b9cb52
minor tweaks
2015-05-23 14:47:50 +02:00
Mathias Fredriksson
94ccd581dd
Close #108 PR: Refactor async logic and allow for async git status..
2015-05-23 13:32:21 +02:00
Sindre Sorhus
467a1a6ce2
Merge pull request #112 from mafredri/fix-git-terminal-prompt
...
Only disable git terminal prompt for git fetch
2015-05-14 00:57:38 +02:00
Mathias Fredriksson
786b580dc9
Only disable git terminal prompt for git fetch
2015-05-13 21:11:38 +03:00
Sindre Sorhus
5ade8aeb8a
fast git execution
2015-04-27 09:31:21 +07:00
Kevin Mårtensson
6ab06a26d7
Merge pull request #110 from ehamberg/noautogc
...
Make sure git background fetch doesn't trigger gc
2015-04-10 19:40:38 +02:00
Erlend Hamberg
759736af29
Make sure git background fetch doesn't trigger gc
2015-03-10 19:27:39 +01:00
Sindre Sorhus
ef1329909a
Merge pull request #107 from mafredri/spacing-fix-2
...
Fix ssh/root spacing issue.
2015-03-06 17:36:42 +08:00