-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
60 lines (46 loc) · 1.44 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
zstyle :compinstall filename '/home/fangz/.zshrc'
zstyle ":completion:*:commands" rehash 1
autoload -Uz compinit
compinit
# enable vi mode, as long as the shell is not inside emacs.
# this is because having both zsh vi mode and evil is redundant
if [[ ! -v INSIDE_EMACS ]]; then
bindkey -v
else
bindkey -e
fi
setopt AUTO_CD
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
PS1="%0(?.%K{green}%F{black}.%K{red}%F{white})%n@%m%f%k%# "
RPS1="%B%2~%b %D{%Y-%m-%d %H:%M:%S}"
#no nut november config
export NNN_OPENER="nuke"
export CM_LAUNCHER="rofi"
#some epic chungus functions and aliases
mares_nest () {
shuf -n 1 $HOME/.quotes | ponysay
}
vi () {
# emacsclient -t "$@"
nvim "$@"
}
alias ls="/usr/bin/exa --long --grid --time-style=long-iso"
alias df="btrfs filesystem df /" # df reports free space in btrfs inaccurately
alias em="/usr/bin/emacsclient -t"
alias dem="SUDO_EDITOR=\"emacsclient -t -a nvim\" sudoedit"
alias d="/usr/bin/devour"
alias fucking="/usr/bin/doas"
alias please="/usr/bin/doas !!"
#autostart mpd
[ ! -s ~/.config/mpd/pid ] && mpd
# see setkey -v/e above
if [[ ! -v INSIDE_EMACS ]]; then
source /usr/share/zsh/plugins/zsh-vi-mode/zsh-vi-mode.zsh
zvm_after_init_commands+=('source /usr/share/fzf/key-bindings.zsh && source /usr/share/fzf/completion.zsh')
else
source /usr/share/fzf/key-bindings.zsh && source /usr/share/fzf/completion.zsh
fi
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
mares_nest