-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
59 lines (46 loc) · 1.55 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
# 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
### Autoloads
autoload -Uz compinit
compinit
autoload -U +X bashcompinit && bashcompinit
fpath=( ~/.zshfn "${fpath[@]}" )
autoload -Uz $fpath[1]/*(.:t)
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
### Config PATH
# Path lmzsh
export PATH_LMZSH="$HOME/.config/lmzsh"
# Path scripts lmzsh
export PATH="$PATH_LMZSH/bin:$PATH"
# Check OS in .zshrc
# Config Linux
if [[ "$(uname -s)" == "Linux" ]]; then
# Includes
for includes in $PATH_LMZSH/include/*.zsh; do
if [[ -f $includes && "$includes" != "$PATH_LMZSH/include/10-macOS.zsh" ]]; then
source $includes
fi
done
### Load
source $ZSH/oh-my-zsh.sh
# Config macOS
elif [[ "$(uname -s)" == "Darwin" ]]; then
# Includes
for includes in $PATH_LMZSH/include/*.zsh; do
if [[ -f $includes && "$includes" != "$PATH_LMZSH/include/10-linux.zsh" ]]; then
source $includes
fi
done
### Load
source $ZSH/oh-my-zsh.sh
else
printf "Sistema Operacional não suportado.\n"
fi
### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT)
export PATH="/Users/lucas/.rd/bin:$PATH"
### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT)