-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.zshenv
60 lines (48 loc) · 1.47 KB
/
.zshenv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env zsh
# shellcheck shell=bash
# vim: foldmarker={,} foldmethod=marker
# Setup
export DOTFILE_FOLDER="${XDG_CONFIG_HOME:-${HOME:?}/.config}/dotfiles"
source "$DOTFILE_FOLDER/utils.zsh"
# Disable the global .zshrc and .zshenv files.
# This is especially important for macOS which likes to include its own into the
# PATH.
unsetopt GLOBAL_RCS
# PATH
PATH="/usr/local/sbin:$PATH"
PATH="/usr/local/bin:$PATH"
PATH="$DOTFILE_FOLDER/bin/commands:$DOTFILE_FOLDER/bin:$PATH"
PATH="$DOTFILE_FOLDER/private/bin:$DOTFILE_FOLDER/private/bin/commands:$PATH"
PATH="$HOME/.local/share/nvim/mason/bin:$PATH"
PATH="$HOME/.local/kitty.app/bin:$PATH"
is_linux && { BREW_PREFIX="/home/linuxbrew/.linuxbrew" }
is_macos && { BREW_PREFIX="/opt/homebrew/" }
eval "$(${BREW_PREFIX}/bin/brew shellenv)"
# macos Applications
is_macos && {
if [[ ! "$PATH" == *Applications* ]]; then
PATH="$PATH:/Applications:$HOME/Applications"
fi
}
# FZF
if [[ ! "$PATH" == */usr/local/opt/fzf/bin* ]]; then
PATH="$PATH:/usr/local/opt/fzf/bin"
export FZF_DEFAULT_OPTS='--no-mouse'
fi
# Go
PATH="$PATH:/usr/local/go/bin:$HOME/go:$HOME/go/bin"
# difftastic
export DFT_SYNTAX_HIGHLIGHT=off
export DFT_CONTEXT=1
FPATH="$DOTFILE_FOLDER/functions:$FPATH"
MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
# Python
unset PYTHONHOME
unset PYTHONPATH
export PYTHONDONTWRITEBYTECODE=1
export EDITOR='nvim'
export VISUAL='nvim'
export MANPAGER='nvim +Man!'
export FPATH
export MANPATH
export PATH