-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
49 lines (43 loc) · 1.02 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
# Enable Powerlevel10k Instant Prompt
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
# Function for Sourcing
function test_source {
test -f "$1" && source "$1"
}
export ZSH="$HOME/.oh-my-zsh"
export ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(
archlinux
copyfile
copypath
cp
docker
docker-compose
extract
git
git-auto-fetch
man
pip
python
rsync
sudo
tmux
vscode
zsh-autosuggestions
zsh-syntax-highlighting
)
# Aliases
alias config="/usr/bin/git --git-dir=$HOME/code/dotfiles/ --work-tree=$HOME"
alias rm=trash
alias source_idf="test_source /opt/esp-idf/export.sh"
alias nv="nvim"
alias lv="NVIM_APPNAME=lazyvim nvim"
# Update Environment Variables
export EDITOR="nvim"
export PATH="$PATH:$(go env GOBIN):$(go env GOPATH)/bin"
# Source Scripts
test_source $ZSH/oh-my-zsh.sh
test_source /usr/share/nvm/init-nvm.sh
test_source ~/.p10k.zsh