-
Notifications
You must be signed in to change notification settings - Fork 2
/
.zprofile
58 lines (46 loc) · 1.15 KB
/
.zprofile
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
#!/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"
# }
# 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"
# macos Applications
is_macos && {
eval "$(/opt/homebrew/bin/brew shellenv)"
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"
fi
# Go
PATH="$PATH:/usr/local/go/bin:$HOME/go:$HOME/go/bin"
export PATH
# }
# difftastic
export DFT_SYNTAX_HIGHLIGHT=off
export DFT_CONTEXT=1
# Functions PATH {
FPATH="$DOTFILE_FOLDER/functions:$FPATH"
export FPATH
# }
# Man PATH {
MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
export MANPATH
# }
# Python {
unset PYTHONHOME
unset PYTHONPATH
export PYTHONDONTWRITEBYTECODE=1
# }
export EDITOR='nvim'
export VISUAL='nvim'
export MANPAGER='nvim +Man!'