]> git.r.bdr.sh - rbdr/dotfiles/blame_incremental - runcoms/zprofile
Correct alias for graphicsmagick
[rbdr/dotfiles] / runcoms / zprofile
... / ...
CommitLineData
1#
2# Executes commands at login pre-zshrc.
3#
4# Authors:
5# Sorin Ionescu <sorin.ionescu@gmail.com>
6#
7
8#
9# Browser
10#
11
12if [[ "$OSTYPE" == darwin* ]]; then
13 export BROWSER='open'
14fi
15
16#
17# Editors
18#
19
20export EDITOR='vi'
21export VISUAL='vi'
22export PAGER='less'
23
24#
25# Language
26#
27
28if [[ -z "$LANG" ]]; then
29 export LANG='en_US.UTF-8'
30fi
31
32#
33# Paths
34#
35
36# Ensure path arrays do not contain duplicates.
37typeset -gU cdpath fpath mailpath path
38
39# Set the the list of directories that cd searches.
40# cdpath=(
41# $cdpath
42# )
43
44# Set the list of directories that Zsh searches for programs.
45path=(
46 /opt/homebrew/{bin,sbin}
47 $path
48)
49
50#
51# Less
52#
53
54# Set the default Less options.
55# Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
56# Remove -X and -F (exit if the content fits on one screen) to enable it.
57export LESS='-F -g -i -M -R -S -w -X -z-4'
58
59# Set the Less input preprocessor.
60# Try both `lesspipe` and `lesspipe.sh` as either might exist on a system.
61if (( $#commands[(i)lesspipe(|.sh)] )); then
62 export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
63fi
64
65#
66# Temporary Files
67#
68
69if [[ ! -d "$TMPDIR" ]]; then
70 export TMPDIR="/tmp/$LOGNAME"
71 mkdir -p -m 700 "$TMPDIR"
72fi
73
74TMPPREFIX="${TMPDIR%/}/zsh"