-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
57 lines (41 loc) · 1.72 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
# 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
export PATH=~/.local/bin:$PATH
# Environment setup
if [ -f ~/.env ]; then
source ~/.env
fi
# Path to your oh-my-zsh installation.
ZSH_DISABLE_COMPFIX=true # solve ownership issues
export ZSH=$HOME/.oh-my-zsh
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
# ZSH_THEME="fishy"
ZSH_THEME="powerlevel10k/powerlevel10k"
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
#plugins=(git ssh-agent)
plugins=(git)
source $ZSH/oh-my-zsh.sh
# Source common aliases
source ~/.shell/aliases.sh
# Source zsh specific aliases
source ~/.zsh/zsh_aliases.zsh
# Source zsh settings
source ~/.zsh/zsh_settings.zsh
# Source external plugins
source ~/.zsh/plugins.zsh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
#test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
#export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/3.0.0/bin:$PATH"
#export PATH="$HOME/.gem/ruby/3.1.0/bin:$PATH"
#source <(kubectl completion zsh)
if [ -n "$KUBERNETES_SERVICE_HOST" ]; then
echo "https://eldarkurtic:${GITHUB_TOKEN}@github.com" > ~/.git-credentials
fi