-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.dotfile
More file actions
executable file
·91 lines (67 loc) · 2.48 KB
/
.dotfile
File metadata and controls
executable file
·91 lines (67 loc) · 2.48 KB
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
#!/bin/zsh
if [[ ${DEBUG_ZSH} ]]; then
echo "[$(date +%H:%M:%S.%3N)] Loading Dotfile dotfile configuration..."
fi
# ENVS
export EGET_BIN=~/.local/bin
export PATH=/usr/bin:~/bin/:~/.local/bin:~/.yarn/bin:$HOME/go/bin:$GOPATH/bin:$PATH
# Sourcing tools
[[ ! -f $HOME/.sdkman/bin/sdkman-init.sh ]] || source $HOME/.sdkman/bin/sdkman-init.sh
# source antidote
source ${ZDOTDIR:-~}/.antidote/antidote.zsh
# initialize plugins statically with ${ZDOTDIR:-~}/.zsh_plugins.txt
antidote load
#
# This is the main dotfiles which will source all other dotfiles.
# Only this file must be sourced in your ~/.zshrc
#
[[ ! -f ~/dotfiles/.p10k.zsh ]] || source ~/dotfiles/.p10k.zsh
export EDITOR="/usr/bin/nano"
# Load 256 color
export TERM="xterm-256color"
# Do fully highlight directories
export LS_COLORS="ow=1;34:tw=1;34:"
# Load our dotfiles like ~/.antidote, etc…
# ~/dotfiles/.extra and ~/dotfiles/.local can be used for settings you don’t want to commit,
# Use it to configure your PATH, thus it being first in line.
for file in ~/dotfiles/.{antidote.zsh,plugins.zsh,powerlevel10k.zsh,extra,exports,aliases,functions,local,install.zsh}; do
[ -r "$file" ] && source "$file"
done
unset file
# Load kubernetes if kubectl is installed
if command -v kubectl &> /dev/null
then
[ -f ~/dotfiles/.k8s.zsh ] && source ~/dotfiles/.k8s.zsh
fi
# Load kubernetes if kubectl is installed
if command -v k3s &> /dev/null
then
[ -f ~/dotfiles/.k3s.zsh ] && source ~/dotfiles/.k3s.zsh
fi
# Get OS name
CURRENT_OS=`uname`
# OS specific plugins
if [[ $CURRENT_OS == 'Darwin' ]]; then
[ -f ~/dotfiles/.osx ] && source ~/dotfiles/.osx
elif [[ $CURRENT_OS == 'Linux' ]]; then
[ -f ~/dotfiles/.linux.zsh ] && source ~/dotfiles/.linux.zsh
DISTRO=$(bash -c 'cat /etc/*-release | grep -a ^ID=')
# Load ubuntu specific stuff (and for debian as there isn't much atm)
if [[ $DISTRO == *'ubuntu'* || $DISTRO == *'debian'* || $DISTRO == *'raspbian'* || $DISTRO == *'osmc'* ]]; then
[ -f ~/dotfiles/.ubuntu ] && source ~/dotfiles/.ubuntu
fi
if [[ $DISTRO == *'debian'* ]]; then
[ -f ~/dotfiles/.debian ] && source ~/dotfiles/.debian
fi
if [[ $DISTRO == *'manjaro'* ]]; then
[ -f ~/dotfiles/.manjaro ] && source ~/dotfiles/.manjaro
fi
fi
# Load hostname file
[ -f ~/dotfiles/.$HOST.zsh ] && source ~/dotfiles/.$HOST.zsh
if command -v kubectl &> /dev/null
then
alias k=kubectl
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
fi
autoload -Uz compinit && compinit