-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
52 lines (43 loc) · 1012 Bytes
/
.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
# Aliases
alias rmf="rm -rf"
alias c="clear"
alias m="make"
alias tn="tmux new-session"
alias exp="explorer.exe ."
mkcd() {
mkdir $1 && cd $1
}
# Exports
export ZSH="$HOME/.oh-my-zsh"
export EDITOR="nvim"
export BAT_THEME="Nord"
export BROWSER="wslview"
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#aaa"
# Enable zsh autocompletion
autoload -Uz compinit
compinit
# Initializing Antigen.zsh
source ~/.antigen/antigen.zsh
antigen use oh-my-zsh
antigen bundle git
antigen bundle nvm
antigen bundle npm
antigen bundle node
antigen bundle sudo
antigen bundle web-search
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle asdf
antigen apply
# Evals
eval "$(starship init zsh)"
# Make new tabs and panes in Terminal keep current path
keep_current_path() {
printf "\e]9;9;%s\e\\" "$(wslpath -w "$PWD")"
}
precmd_functions+=(keep_current_path)
# zoxide
eval "$(zoxide init zsh)"
# asdf
. "$HOME/.asdf/asdf.sh"