-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzprofile
67 lines (54 loc) · 1.31 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
59
60
61
62
63
64
65
66
67
export LS_COLORS='di=36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43'
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
export ZDOTDIR="${ZDOTDIR:-$HOME}"
export GPG_TTY=$(tty)
# golang setup
export GOPATH=$HOME/go
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
export HISTFILESIZE=1000000000
export HISTSIZE=1000000000
export HISTFILE=~/.zsh_history
export SAVEHIST=1000000000
# Custom configurations
# Add your custom Zsh configurations here
# editor setup
if (( $+commands[nvim] )); then
export EDITOR=nvim
export VISUAL=nvim
elif (( $+commands[vim] )); then
export EDITOR=vim
export VISUAL=vim
fi
typeset -ga sources
# any modifications to path go in this file
path=(
${HOME}/.rd/bin
${HOME}/.local/bin
${HOME}/.zinit/polaris/bin
${HOME}/bin
${HOME}/ripple/bin
/usr/local/bin
/usr/local/sbin
$path
${HOME}/go/bin
${HOME}/.cargo/bin
${HOME}/.krew/bin
)
cdpath=( $HOME/git )
# try to include all sources
foreach file (`echo $sources`)
if [[ -a $file ]]; then
source $file
fi
end
# set path according to os type
#case $OSTYPE {
# linux*)
# ;;
# darwin*)
# PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
# ;;
#}
if (( $+commands[brew] )); then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi