Commit graph

96 commits

Author SHA1 Message Date
Tatsuro Furusawa e35c37bd72 add aws and go config 2022-07-06 17:21:00 +09:00
Tatsuro Furusawa f9aa6f1c81 update zshrc 2022-03-09 22:26:14 +09:00
Tatsuro Furusawa 0363f150cc update zshrc 2022-03-02 21:55:08 +09:00
Tatsuro Furusawa caa08752a9 add local rc loader 2021-05-05 21:51:56 +09:00
Tatsuro Furusawa 3bb4a821c5
Merge pull request #2 from furusax0621/update-profile-20210428
Update profile 20210428
2021-04-28 11:54:46 +09:00
Tatsuro Furusawa f397dab608 update zshrc 2021-04-28 11:53:45 +09:00
Tatsuro Furusawa be7394ef55 change editor to vim 2021-04-28 11:52:40 +09:00
Tatsuro Furusawa 85b94b4541 Merge branch 'master' of git://github.com/sorin-ionescu/prezto 2021-04-28 11:51:34 +09:00
Kenichi Kamiya a7f223d959 Enable history-substring-search as a default module
Resolves #1868
2021-04-17 20:24:13 -05:00
Texas Toland ff91c8d410
Make .zcomp* location configurable (#1842) 2020-06-04 13:53:44 -07:00
Tatsuro Furusawa 2095573028 Merge branch 'master' of https://github.com/sorin-ionescu/prezto 2020-03-01 20:17:35 +09:00
mattmc3 a3a51bdf6c Support pmodule-allow-overrides feature (#1780) 2020-01-13 15:49:37 -08:00
Roman Perepelitsa c6efe80152 runcoms: don't raise an error in zlogin when stderr is not a TTY (#1775)
The existing code in runcoms/zlogin results in `$?` being
equal to `1` when starting a login shell if stderr is not
a TTY. For example:

  zsh -l 2>/dev/null

When using a theme that displays error/success status of
the last command, the first prompt will show an error.

This commit fixes it so that error code is zero after
sourcing zlogin (unless something unexpected and bad happens).
2020-01-11 00:48:45 -08:00
furusax0621 5c9c4288d4 Merge branch 'feature/change-theme-pure' into develop 2019-04-08 22:00:29 +09:00
furusax0621 64d4d77926 Add zsh plugin modules.
Add plugin syntax-highlighting and autosuggestions.
2019-04-05 22:11:00 +09:00
furusax0621 2cfc0ef4df Change prompt theme to pure.
Change zsh prompt theme from sorin to
pure(github.com/sindresorhus/pure).
2019-04-05 22:03:29 +09:00
Indrajit Raychaudhuri 6f603df7a6 general: Miscellaneous documentation updates
- Add missing documentation for options and environment variables
- Rearrange definition and documentation of 'Options', 'Variables'
  and 'Aliases' in a consistent order
2018-10-12 12:04:49 -05:00
newtonne 66487c9532 Correct alphabetical order in zprestorc 2018-08-13 14:11:01 -05:00
Christopher Bowns 92e668e1d9 Remove zlogout's Apu quote (#1583)
* Remove zlogout's Apu quote

For questions about why, see https://en.wikipedia.org/wiki/The_Problem_with_Apu

* Add a couple of random sayings per feedback in #1583
2018-05-22 18:44:57 -07:00
Ashish Gandhi b6b43eb331 Rename "Mac OS X" to "macOS" in comments
This only changes references in text for human consumption. It leaves
out renaming paths because that can cause breaking changes.

Related issue https://github.com/sorin-ionescu/prezto/issues/1449.
2018-04-16 15:53:48 -07:00
Kaleb Elwert 054eb351f1 Revert "Only call reset-prompt when the appropriate zstyle is set"
This reverts commit 6d00fdf8c8.

As unfortunate as it is, this workaround was a hack and doesn't take
into account prompts like spaceship which don't use $editor_info but
rely on $KEYMAP directly. We'll need to find a more consistent solution
to fix this.
2018-04-06 11:33:02 -07:00
John P. Neumann 6d00fdf8c8 Only call reset-prompt when the appropriate zstyle is set
Resolves issue #1524 (#1548)
2018-02-20 20:36:29 -08:00
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