Indrajit Raychaudhuri
4437a48414
zprofile: adjust condition for `LESSOPEN` export
...
Split tests for condition for `export LESSOPEN` separate per convention
3 years ago
Aaron Kanter
f89c8c8d64
Only export env variables in zprofile if unset
...
As per [zsh documentation](https://zsh.sourceforge.io/Intro/intro_3.html ) environment variables should be expected to be in `.zshenv` and not be overridden in `.zprofile`. This change modifies BROWSER (on darwin systems only), EDITOR, VISUAL, PAGER, LESS, and LESSOPEN to only use zprezto defaults if they were not previously set in the loading order.
See:
https://github.com/nix-community/home-manager/issues/2739
https://github.com/nix-community/home-manager/issues/2751
3 years ago
Indrajit Raychaudhuri
bd8fabdca2
zprofile: Don't exit 'less' when everything fits the screen
...
This aligns better with default `less` behavior and allows for
'growable content' when `less` is used as a substitute for `tail`.
4 years ago
Jeff Widman
9dfa8a67f6
Fix typo
7 years ago
Kaleb Elwert
3f556400e7
Avoid setting TMPDIR and make sure all modules handle that properly
...
Fixes #1206
7 years ago
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.
7 years ago
Alexander Neumann
2f20a80f72
sorin theme: Use a proper temp file for async data
8 years ago
Alexander Neumann
5bcc223e95
zprofile: Use non-random static TMPDIR
...
Closes #1319
8 years ago
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.
8 years ago
Sorin Ionescu
ab45ade380
[ Fix #801 ] Make $TMPPREFIX a file path
10 years ago
Sorin Ionescu
88aee30ae8
[ Fix #762 ] Use $LOGNAME instead of $USER
...
$USER is deprecated.
10 years ago
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.
10 years ago
Sorin Ionescu
a84ac5b002
Only one newline at end of file
10 years ago
Sorin Ionescu
76fc07ba9f
Comment a typeset
11 years ago
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>
11 years ago
Sorin Ionescu
df82640caa
Rename templates to runcoms
12 years ago
Sorin Ionescu
bdaba6a714
[ #171 ] Add templates and README for all rc files
13 years ago