X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Fenv;h=30483a0178dea80120bc2c6c6ee1a9dcfdf4d8dc;hb=8e71f6b905ec7ef2105d59a949d784a64ce9a574;hp=4a4a6e0e7a4335e24c3ad489420288891483786d;hpb=77a5c7d1b9f199497a3e23766d38436f46b8f14a;p=config%2Fdotfiles.git diff --git a/zsh/env b/zsh/env index 4a4a6e0..30483a0 100644 --- a/zsh/env +++ b/zsh/env @@ -24,12 +24,10 @@ source_config ~/.shell/env # Make sure elements in PATH are unique. typeset -U path PATH -# Setup lesspipe to view multiple file-types (like .gz, .zip, etc.) with less. -# Useful in combination with the "p" alias. Taken from Debian's default bash -# files. Thanks. -if [[ -x /usr/bin/lesspipe ]]; then - eval $(SHELL=/bin/sh lesspipe) || echo 'Broken lesspipe!' >&2 -fi +# Use $TMPDIR/zsh as directory for temporary Zsh files to prevent symlink +# attacks - only helps if $TMPDIR points to a safe directory (which should be +# true with the settings in shell/env). +TMPPREFIX="$TMPDIR/zsh" source_config ~/.zsh/env.local