1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 08:08:00 +00:00
Commit Graph

74 Commits

Author SHA1 Message Date
Joel Kuzmarski
e2785cc246 Better TTY logic for zlogin and zlogout 2017-12-04 11:38:16 -08:00
Kaleb Elwert
ce349dff81
Allow modules to be loaded from multiple places (#1458)
* Allow modules to be loaded from multiple places
* Add setting for user specified module dirs

This is initial work for the contrib repo, mentioned in #1424
2017-11-12 16:01:39 -08:00
Kaleb Elwert
34482cb325 prompt: add documentation for return value display 2017-09-06 11:19:17 -07:00
Jeff Widman
9dfa8a67f6 Fix typo 2017-08-16 14:58:21 -07:00
Kaleb Elwert
3f556400e7 Avoid setting TMPDIR and make sure all modules handle that properly
Fixes #1206
2017-07-28 10:24:51 -07:00
Indrajit Raychaudhuri
9b6bf4a7cd [completion] Support ignoring '/etc/hosts' entries in host completion
Entries from static '/etc/hosts' can now be ignored via 'zstyle' based
configuration. Both IP address and corresponding hostname will be ignored
during host completion. However, some of the entries ignored from '/etc/hosts'
still might appear during completion because of their presence in 'ssh'
configuration ('~/.ssh/config') or history ('~/.ssh/ssh_hosts',
'~/.ssh/known_hosts' etc.).
2017-07-26 23:42:34 -05:00
Indrajit Raychaudhuri
19435b16ea [python] Improve and document virtualenvwrapper initialization flow
Changes:
* Simplify zstyle name `skip-virtualenvwrapper-init` to `initialize`
  avoiding double negation in name
* Always perform `eval (pyenv virtualenv-init -)` at initialization
* Prefer `virtualenvwrapper_lazy` over `virtualenvwrapper` when available
* Honor `VIRTUALENVWRAPPER_VIRTUALENV` if it is defined.
* Document about `VIRTUALENVWRAPPER_PYTHON` and `VIRTUALENVWRAPPER_VIRTUALENV`
  (this would be particularly important in macOS after recent homebrew update)
* Add additional documentation for `initialize` in _README.md_ and _zpreztorc_
* Add aliases `py2`, `py3` as shortcut for `python2`, `python3` respectively
2017-07-26 01:42:31 -05:00
Indrajit Raychaudhuri
d6276e8025 [osx] Support custom keyword used by mand to open man pages in Dash.app
`zstyle` based customization is now avaialble in *zpreztorc*.
2017-07-23 13:19:04 -05:00
Indrajit Raychaudhuri
17a59bada7 [prompt] Rename helper function promptpwd to prompt-pwd for consistency
Changes:
* In prezto, function names are hyphenated ('-') by convention,
  rename `promptpwd` to `prompt-pwd` accordingly.
* Unset local variable `current_pwd` proactively.
* Tweak additional documentation for `prompt-pwd`.
2017-07-22 13:13:00 -05:00
Indrajit Raychaudhuri
cb4be65d29 [utility] Update documentation for 'safe-ops'
Update formatting and wordings to be more consistent with rest of prezto
documentation.
2017-07-17 19:57:32 -05:00
Kaleb Elwert
17bc7530ba Update documentation on safeops 2017-07-11 11:58:56 -07:00
Samantha McVey
2a75fba6a8 [utility] Add safe-ops zstyle option to disable safe rm/cp/ln/mv
Currently rm/cp/ln/mv are aliased to rm/cp/ln/mv -i so that it will
prompt before removing files.

Some people would not like this functionality and wish for an easy way to
disable it. This adds a new option:

zstyle ':prezto:module:utility' safe-ops yes/no

It is enabled by default even if zstyle is not set, but can be set to no
to disable these aliases.

This should resolve issue #205
2017-07-11 11:48:05 -07:00
Samantha McVey
a4ff6acd56 [runcoms/zprofile+zshenv] Ensure TMPDIR is always set
In some cases TMPDIR may not be set, in which case it could cause issues
for zsh modules.

This change was prompted by issue #1331.

Also when creating a missing TMPDIR, use mkdir --mode=700 instead
of creating the directory and then chmoding it afterward.
2017-06-26 14:58:37 -07:00
Alexander Neumann
2f20a80f72 sorin theme: Use a proper temp file for async data 2017-06-13 10:36:35 -07:00
Alexander Neumann
5bcc223e95 zprofile: Use non-random static TMPDIR
Closes #1319
2017-06-13 10:36:35 -07:00
Matthew Crenshaw
08e39a587f Python virtualenv auto workon cwd hook (#1300)
* Command to activate virtualenvs on changing directory

Enables automatic activation of a virtualenv when jumping into a directory
This is done by looking in the current directory for a file or directory
named `.venv`. If it's not found in the current directory its parents will
also be examined. `.venv` can be either:
    1. A file containing the name of a virtualenv found in $WORKON_HOME
    2. A directory containing bin/activate (meaning that the directory is
       assumed to be a virtualenv.)
If $WORKON_HOME is set it is assumed that virtualenvwrapper is installed
and the `workon` command will be issued.
2017-05-30 17:26:18 -07:00
Kaleb Elwert
6975b119b6 Change the zstyle config name for #607 2017-05-02 18:02:28 -07:00
Matt Henkel
d02c2951b3 Add the ability to specify tmux session name 2017-05-02 17:57:14 -07:00
Kyle Rich
723b3812e1 Convert long-pwd to pwd-length 2017-04-27 13:33:40 -07:00
Kyle Rich
7c509a264f Add zstyle option to show pwd in long format 2017-04-26 11:30:10 -07:00
Eduard Zintz
1c0f95c08e Allow syntax highlighting pattern styles (#1192) 2017-04-13 02:25:45 -07:00
John P. Neumann
412af29808 Merge pull request #1272 from sorin-ionescu/issue/1246-ps-context-config
Adds additional support for PS prompt context expansion
2017-04-11 00:14:08 -05:00
Olaf Conradi
013668f484 Improve and simplify titling functions.
Multiplexer titles can be set independent of window and tab titles.
Add auto-title always option to have dynamic titling inside terminal
multiplexers. Setting auto-title to yes continues to ignore dynamic
titling inside terminal multiplexers.

This patch should not alter behavior under Apple terminals.
2017-04-04 22:27:13 -07:00
Jared Scott
3a6ae0fc6c Change $TMPDIR for non-interactive shells
This commit changes the way $TMPDIR is set by using `mktemp` rather
than a fixed string.
2017-04-04 20:49:00 -07:00
John P. Neumann
b38ced856a Adds additional support for PS prompt context expansion 2017-04-02 14:09:58 -05:00
Sorin Ionescu
4f19700919 Add missing syntax highlighter 2016-03-02 23:29:51 -05:00
Sorin Ionescu
c8b8397728 [Fix #532] Integrate autosuggestions 2016-03-02 16:31:33 -05:00
Sorin Ionescu
ab45ade380 [Fix #801] Make $TMPPREFIX a file path 2015-02-22 21:56:12 -05:00
Sorin Ionescu
88aee30ae8 [Fix #762] Use $LOGNAME instead of $USER
$USER is deprecated.
2015-02-13 00:00:27 -05:00
Daniel Kolakowski
00a5639e65 Enable iTerm2 tmux integration
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2014-11-12 18:19:58 -05:00
Indrajit Raychaudhuri
6f9c1666e1 Use short apothegms only in fortune 2014-11-05 17:43:43 -05:00
Indrajit Raychaudhuri
53bd555c6d Try lesspipe in addition to lesspipe.sh for LESSOPEN
Debian based systems have `lesspipe`, without '.sh' suffix.
Since `$commands` is an associative array, we do index search and set
the input preprocessor on first match.
2014-10-10 19:00:46 -04:00
Joel Kuzmarski
5791c07d48 Only print fortunes in terminals 2014-10-10 18:53:44 -04:00
Sorin Ionescu
a84ac5b002 Only one newline at end of file 2014-10-09 23:38:15 -04:00
Xavier Cambar
478653fab2 [Fix #543] Do not set tmux destroy-unattached
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2014-03-07 15:48:49 -05:00
Sorin Ionescu
dbeb6d4e1a [Fix #361] Load chruby when found 2014-02-01 23:37:29 -05:00
Sorin Ionescu
e4e4f89c9f [Fix #523] Ensure zprofile exists before sourcing it 2014-01-03 13:37:36 -05:00
Peter Jaros
cdc4f36f25 Fix heading level for "zpreztorc" 2013-11-29 17:34:34 -05:00
Sorin Ionescu
254b7c36d9 [Fix #324] Add configurable terminal window and tab title formats 2013-11-26 00:25:37 -05:00
Sorin Ionescu
5b4dcea595 Simplify auto-titling 2013-11-26 00:25:36 -05:00
Sorin Ionescu
b98c7469e5 Rewrite terminal auto-title 2013-11-26 00:25:35 -05:00
Sorin Ionescu
76fc07ba9f Comment a typeset 2013-11-25 18:16:36 -05:00
Robin
3a5fff9c6d Don't override customized environments in subshells
Only set up environment for the top-level shell, and allow it to be
inherited normally.

A top level shell is usually a login shell, but can also be a
non-interactive, non-login shell in certain cases, such as when
executing an SSH remote command.

Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2013-11-25 17:16:33 -05:00
Sorin Ionescu
eb1a20552a Comment an unnecessary style 2013-08-27 22:29:20 -04:00
Georges Discry
07686fad38 Increase control over multiplexer auto-start
Setting the auto-start 'remote' and 'local' zstyles for the screen and
tmux modules to 'true' automatically starts a session in SSH connections
and in local terminals respectively.

Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2013-08-12 18:27:24 -04:00
Sorin Ionescu
875ce2e56c [Fix #434] Correct ambiguity in the use of the term keymap 2013-05-27 17:23:53 -04:00
Sorin Ionescu
c9c3b40b5c [Fix #437] Always set $TMPDIR 2013-05-23 15:58:55 -04:00
Sorin Ionescu
fcab2a1713 [Fix #425] Rewrite module ssh-agent; rename it to ssh 2013-05-18 19:27:40 -04:00
Sorin Ionescu
2e64f7ed64 [Fix #419] Rewrite module gpg-agent; rename it to gpg 2013-05-01 11:28:40 -04:00
Sorin Ionescu
6cd97d2d0f [Fix #52] Add zstyles to configure history-substring-search 2013-04-26 19:47:12 -04:00