-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
51 lines (40 loc) · 1.42 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
# oh-my-zsh
export ZSH="$HOME/.oh-my-zsh"
# zsh theme
ZSH_THEME="robbyrussell"
# plugins
plugins=(git)
# oh-my-zsh
source $ZSH/oh-my-zsh.sh
# aliases
alias up="sudo apt update && sudo apt upgrade && sudo apt dist-upgrade && sudo apt autoremove"
# zinit installer
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
source "${ZINIT_HOME}/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
# zinit plugins
zinit light zdharma/fast-syntax-highlighting
zinit light zsh-users/zsh-autosuggestions
zinit light zsh-users/zsh-completions
# nvm
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# go
export PATH=$PATH:/usr/local/go/bin
alias air='~/.air'
# flutter
export PATH=$PATH:/usr/local/flutter/bin
# my alias commands
alias loginvpn='sh ~/commands/vpnDasa.sh'
alias killport='sh ~/commands/killUsingPort.sh'
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \
zdharma-continuum/zinit-annex-as-monitor \
zdharma-continuum/zinit-annex-bin-gem-node \
zdharma-continuum/zinit-annex-patch-dl \
zdharma-continuum/zinit-annex-rust
### End of Zinit's installer chunk