-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
97 lines (75 loc) · 2.63 KB
/
.zshrc
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#==============================================================================
# title : .zshrc
# description : This file contains my zsh configurations
# author : Adi Iyengar
# username : aditya7iyengar
# date_created : 2017-02-01
# version : 0.9
# usage : link/move to ~/.zshrc
# notes : This adds a simple zsh shell configuration
# versions : Tmux 2.x, Zsh 5.x
#==============================================================================
# Check OS
kernel="`uname`"
case $kernel in
'Linux')
export DOTFILES_OS='linux'
;;
'Darwin')
export DOTFILES_OS='osx'
;;
esac
# Path to oh-my-zsh
export ZSH="$HOME/.oh-my-zsh"
plugins=(git)
source $ZSH/oh-my-zsh.sh
LIBRARY_PATH=:/usr/local/opt/openssl/lib/
if [[ -e $HOME/.zshrc-components/exports.sh ]]; then
source $HOME/.zshrc-components/exports.sh
fi
if [[ -e $HOME/.zshrc-components/aliases.sh ]]; then
source $HOME/.zshrc-components/aliases.sh
fi
if [[ -e $HOME/.zshrc-components/asdf.sh ]]; then
source $HOME/.zshrc-components/asdf.sh
fi
if [[ -e $HOME/.zshrc-components/asdf.elixir.sh ]]; then
source $HOME/.zshrc-components/asdf.elixir.sh
fi
if [[ -e $HOME/.zshrc-components/asdf.rust.sh ]]; then
source $HOME/.zshrc-components/asdf.rust.sh
fi
if [[ -e $HOME/.zshrc-components/asdf.ruby.sh ]]; then
source $HOME/.zshrc-components/asdf.ruby.sh
fi
if [[ -e $HOME/.zshrc-components/asdf.go.sh ]]; then
source $HOME/.zshrc-components/asdf.go.sh
fi
if [[ -e $HOME/.zshrc-components/asdf.haskell.sh ]]; then
source $HOME/.zshrc-components/asdf.haskell.sh
fi
if [[ -e $HOME/.zshrc-components/asdf.direnv.sh ]]; then
source $HOME/.zshrc-components/asdf.direnv.sh
fi
if [[ -e $HOME/.zshrc-components/asdf.nvim.sh ]]; then
source $HOME/.zshrc-components/asdf.nvim.sh
fi
if [[ -e $HOME/.zshrc-components/fasd.sh ]]; then
source $HOME/.zshrc-components/fasd.sh
fi
if [[ -e $HOME/.zshrc-components/custom.sh ]]; then
source $HOME/.zshrc-components/custom.sh
fi
if [[ -e /Library/TeX/texbin/pdflatex ]]; then
export PATH="$PATH:/Library/TeX/texbin/"
fi
if [ $DOTFILES_OS = "osx" ]; then
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f $HOME/.p10k.zsh ]] || source $HOME/.p10k.zsh
fi