1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 22:09:25 +00:00
Commit Graph

64 Commits

Author SHA1 Message Date
17bc7530ba Update documentation on safeops 2017-07-11 11:58:56 -07:00
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
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
2f20a80f72 sorin theme: Use a proper temp file for async data 2017-06-13 10:36:35 -07:00
5bcc223e95 zprofile: Use non-random static TMPDIR
Closes #1319
2017-06-13 10:36:35 -07:00
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
6975b119b6 Change the zstyle config name for #607 2017-05-02 18:02:28 -07:00
d02c2951b3 Add the ability to specify tmux session name 2017-05-02 17:57:14 -07:00
723b3812e1 Convert long-pwd to pwd-length 2017-04-27 13:33:40 -07:00
7c509a264f Add zstyle option to show pwd in long format 2017-04-26 11:30:10 -07:00
1c0f95c08e Allow syntax highlighting pattern styles (#1192) 2017-04-13 02:25:45 -07:00
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
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
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
b38ced856a Adds additional support for PS prompt context expansion 2017-04-02 14:09:58 -05:00
4f19700919 Add missing syntax highlighter 2016-03-02 23:29:51 -05:00
c8b8397728 [Fix #532] Integrate autosuggestions 2016-03-02 16:31:33 -05:00
ab45ade380 [Fix #801] Make $TMPPREFIX a file path 2015-02-22 21:56:12 -05:00
88aee30ae8 [Fix #762] Use $LOGNAME instead of $USER
$USER is deprecated.
2015-02-13 00:00:27 -05:00
00a5639e65 Enable iTerm2 tmux integration
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2014-11-12 18:19:58 -05:00
6f9c1666e1 Use short apothegms only in fortune 2014-11-05 17:43:43 -05:00
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
5791c07d48 Only print fortunes in terminals 2014-10-10 18:53:44 -04:00
a84ac5b002 Only one newline at end of file 2014-10-09 23:38:15 -04:00
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
dbeb6d4e1a [Fix #361] Load chruby when found 2014-02-01 23:37:29 -05:00
e4e4f89c9f [Fix #523] Ensure zprofile exists before sourcing it 2014-01-03 13:37:36 -05:00
cdc4f36f25 Fix heading level for "zpreztorc" 2013-11-29 17:34:34 -05:00
254b7c36d9 [Fix #324] Add configurable terminal window and tab title formats 2013-11-26 00:25:37 -05:00
5b4dcea595 Simplify auto-titling 2013-11-26 00:25:36 -05:00
b98c7469e5 Rewrite terminal auto-title 2013-11-26 00:25:35 -05:00
76fc07ba9f Comment a typeset 2013-11-25 18:16:36 -05:00
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
eb1a20552a Comment an unnecessary style 2013-08-27 22:29:20 -04:00
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
875ce2e56c [Fix #434] Correct ambiguity in the use of the term keymap 2013-05-27 17:23:53 -04:00
c9c3b40b5c [Fix #437] Always set $TMPDIR 2013-05-23 15:58:55 -04:00
fcab2a1713 [Fix #425] Rewrite module ssh-agent; rename it to ssh 2013-05-18 19:27:40 -04:00
2e64f7ed64 [Fix #419] Rewrite module gpg-agent; rename it to gpg 2013-05-01 11:28:40 -04:00
6cd97d2d0f [Fix #52] Add zstyles to configure history-substring-search 2013-04-26 19:47:12 -04:00
810a4490d7 [#52] Add zstyles to configure syntax-highlighting 2013-04-26 19:47:07 -04:00
f431af790b Fix misspellings of the word bellow in READMEs 2013-04-24 22:50:17 -04:00
579dfee6f7 [Fix #399] Only enable the main syntax highlighter 2013-03-01 00:27:00 -05:00
6e65349c45 [Fix #398] Manually set locale 2013-02-28 17:28:05 -05:00
6fd00449a6 [Fix #381] Remove the path_helper workaround 2013-01-28 18:06:14 -05:00
095863e6ae [Fix #385] Do not set $INFOPATH 2013-01-28 17:35:27 -05:00
e5de305157 [Fix #383] Do not set $MANPATH
man dynamically searches for man pages based on $PATH.
2013-01-28 17:34:55 -05:00
39795d3e5e Fix lesspipe.sh detection in custom PATH
The detection of lesspipe.sh has to be done after setting PATH as it
could be installed in a non-standard bin directory. For example,
Homebrew installs lesspipe in /usr/local.
2013-01-23 17:01:57 +01:00
455cc0c6e5 Export $MANPATH and $INFOPATH 2013-01-12 11:31:29 -05:00
5a245850f0 [Fix #355] Do not set launchd environment variables
Setting environment variables for launchd processes is unreliable.
Finder and all Finder launched programs have to be restarted for the
new environment variables to take effect.
2012-12-30 18:15:43 -05:00