-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
63 lines (43 loc) · 1.77 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
60
61
62
63
# ------------------ Options ----------------------- {{{
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="robbyrussell"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
HYPHEN_INSENSITIVE="true"
# Uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="false"
plugins=(git)
source $ZSH/oh-my-zsh.sh
source $HOME/.env
eval "$(starship init zsh)"
export STARSHIP_CONFIG=~/.config/starship
export VISUAL=nvim
export EDITOR=nvim
export PATH="${HOME}/.local/bin:${PATH}"
export MOZ_USE_XINPUT2=1
export RANGER_DEVICONS_SEPARATOR=" "
# -------------------------------------------------- }}}
# ------------------ Aliases ----------------------- {{{
source ~/.aliases
alias zshrc="nvim ~/.zshrc"
alias nvimrc="ranger ~/.config/astronvim/lua/user"
alias cpicom="nvim ~/.config/picom/picom.conf"
alias cawesome="cd ~/.config/awesome && nvim ~/.config/awesome/rc.lua"
alias scrotsel="scrot -s -b ~/scrot.png && xclip -selection clipboard -t image/png ~/scrot.png && rm ~/scrot.png"
alias scrotwin="scrot -u -b ~/scrot.png && xclip -selection clipboard -t image/png ~/scrot.png && rm ~/scrot.png"
alias scrotscreen="scrot -u ~/scrot.png && xclip -selection clipboard -t image/png ~/scrot.png && rm ~/scrot.png"
alias audiowine="WINEPREFIX='/home/vermoot/.audiowine/prefix1'"
# -------------------------------------------------- }}}
export PATH=$PATH:/home/vermoot/.spicetify
__git_files () {
_wanted files expl 'local files' _files
}
eval "$(atuin init zsh --disable-up-arrow)"
function ya() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
yazi "$@" --cwd-file="$tmp"
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
cd -- "$cwd"
fi
rm -f -- "$tmp"
}