-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
50 lines (42 loc) · 1.03 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
# Environment variables
export LANG=en_US.UTF-8
export EDITOR="nvim"
export GIT_EDITOR=$EDITOR
export KUBE_EDITOR=$EDITOR
export SUDO_EDITOR=$EDITOR
export PATH="$PATH:$HOME/.local/bin"
# PHP
export COMPOSER_PATH="$HOME/.config/composer"
export COMPOSER_BIN="$COMPOSER_PATH/vendor/bin"
export PATH="$PATH:$COMPOSER_BIN"
# Go
export GOPATH="$(go env GOPATH)"
export GOBIN="$GOPATH/bin"
export PATH="$PATH:$GOBIN"
# Sources
source $HOME/.oh-my-zsh/oh-my-zsh.sh
source "$HOME/antigen.zsh"
# Aliases
alias l="exa -lha"
# Antigen (https://antigen.sharats.me/)
antigen use oh-my-zsh
antigen bundle git
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-history-substring-search
antigen theme robbyrussell
antigen apply
# Bindings
bindkey '^ ' autosuggest-accept
# Functions
hi() {
cd "$HOME/.dotfiles"
git pull
cd "$HOME"
sudo apt update
sudo apt upgrade -y
}
# Tools
eval "$(starship init zsh)"
eval "$(zoxide init --cmd cd zsh)"