-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
59 lines (52 loc) · 1.27 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
# Environment variables
export LANG=en_US.UTF-8
export EDITOR="code"
export GIT_EDITOR=$EDITOR
export KUBE_EDITOR=$EDITOR
export SUDO_EDITOR=$EDITOR
export PATH="$PATH:$HOME/.local/bin"
export KITTY_SHELL_INTEGRATION=no-cursor
# PHP
export COMPOSER_PATH="$HOME/.config/composer"
export COMPOSER_BIN="$COMPOSER_PATH/vendor/bin"
export COMPOSER_AUTH="$(cat $COMPOSER_PATH/auth.json)"
export PATH="$PATH:$COMPOSER_BIN"
# Go
export GOPATH="$(go env GOPATH)"
export GOBIN="$GOPATH/bin"
export PATH="$PATH:$GOBIN"
# Antigen (https://antigen.sharats.me/)
source "$HOME/antigen.zsh"
antigen use oh-my-zsh
antigen bundle git
antigen bundle tmux
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-history-substring-search
antigen bundle zsh-users/zsh-syntax-highlighting
antigen apply
# Aliases
alias gpt="chatgpt"
alias l="eza --all --icons --git"
# Functions
dotfiles() {
cd "$HOME/.dotfiles"
git pull
stow .
cd "$HOME"
}
update() {
if [[ "$(uname)" == "Linux" ]]; then
sudo apt update
sudo apt upgrade -y
sudo do-release-upgrade
sudo apt autoremove -y
elif [[ "$(uname)" == "Darwin" ]]; then
brew update
brew upgrade
brew cleanup
fi
}
# Tools
eval "$(zoxide init zsh)"
eval "$(starship init zsh)"