-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
115 lines (88 loc) · 2.4 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
################################################################
## ZSH CONFIGURATIONS
HISTFILE=~/.zshhist # Save history file
HISTSIZE=2048 # Save history zsh max lines
SAVEHIST=4096 # Save history file max lines
setopt autocd # Automatically change directory if only a path was provided
unsetopt beep notify # No bells!
bindkey -v # Use VI Keybindings
PROMPT="%F{green}%n@%m%f %~ $ " # The prompt
################################################################
## EXPORTS
export PATH="${PATH}:/home/light/.local/bin:/home/light/scripts/"
export LC_ALL="C"
################################################################
## ALIASES
alias icat='kitty +kitten icat'
alias zsrc='source ~/.zshrc'
alias v='~/downloads/nvim/nvim-linux64/bin/nvim'
alias vv='neovide --multigrid --noidle --neovim-bin ~/downloads/nvim/nvim-linux64/bin/nvim && exit'
alias vpn='expressvpn'
alias q='exit'
alias :q='exit'
alias :wq='exit'
alias :qa='exit'
alias wacom='xsetwacom --set 9 Area 15200 8550 0 0'
alias bitch='sudo'
alias please='sudo'
alias communistify='chmod +777'
alias bg='cmake -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=DEBUG'
alias b='cmake --build build -j`nproc`'
alias b1='cmake --build build'
# list
alias l='\colorls -l --sf'
# list all
alias la='\colorls -lA --sf'
# list simple
alias ls='\colorls --sf'
# list simple all
alias lsa='\colorls -A --sf'
alias ~="c ~"
alias ..='c ../'
alias ...='c ../../'
alias ....='c ../../../'
alias .....='c ../../../../'
alias ......='c ../../../../../'
alias randwall='feh --bg-fill --randomize ~/pictures/wallpapers/'
alias setwall='feh --bg-fill'
alias mpv='mpv --input-ipc-server='/tmp/mpvsocket''
alias poweroff='sudo -v ; mpv --no-terminal ~/.config/xmonad/poweroff.wav ; sudo poweroff'
pomodoro_work()
{
sleep 1h
mpv ~/.config/xmonad/beep.mp3 --loop --volume=120
}
pomodoro_rest()
{
sleep 10m
mpv ~/.config/xmonad/beep.mp3 --loop --volume=120
}
c()
{
cd ${1:-.} ; clear ; l
}
ca()
{
cd ${1:-.} ; clear ; la
}
cs()
{
cd ${1:-.} ; clear ; ls
}
csa()
{
cd ${1:-.} ; clear ; lsa
}
cn()
{
cd ${1:-.} ; clear ; neofetch
}
cgs()
{
cd ${1:-.} ; clear ; git status
}
picomadd() # add exception to opacity
{
sed -i '/# OPACITY_RULE/i ,"100:name *= '\'$1\''"' ~/.config/picom/picom.conf
}
fortune | cowsay | lolcat