blob: beb232add5524c07d52c67ef1a49b1bfcf5bacbd (
plain)
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
|
#!/bin/sh
## Suffix Aliases ##
alias -s \
{c,h,txt}=nvim \
{pdf}=zathura
## Normal Aliases ##
# Replacement programs
alias \
sudo="doas" \
ls="exa --icons -a --group-directories-first" \
htop="htim" \
vim="nvim" \
mutt="neomutt"
# Shorten program names
alias \
spotify="flatpak run com.spotify.Client" \
smi="sudo make install" \
smci="sudo make clean install"
# Quick navigate to directories / open specific files
alias \
zrc="cd ~/.config/zsh" \
xrc="cd ~/.config/x11" \
vrc="nvim ~/.config/nvim/init.vim" \
..="cd .." \
cdc="cd ~/.local/src/programs" \
cds="cd ~/.local/bin" \
cdw="cd ~/.local/src/sites" \
hw="cd ~/docs/school" \
# Power scripts
alias \
halt="launch shutdown" \
off="launch shutdown" \
reboot="launch reboot" \
zzz="launch suspend" \
# Colorize command output
alias \
grep="grep --color=auto -I --ignore-case --line-numbers" \
grep="rg -i" \
#diff="diff --color=auto" \ # Does not work on OpenBSD
#ls="ls -hN --color=auto --group-directories-first" \
# Verbosity / non-verbosity
alias \
cp="cp -iv" \
mv="mv -iv" \
rm="rm -v" \
mkd="mkdir -p" \
br="br -h" \
ffmpeg="ffmpeg -hide_banner" \
# Clean home directory
alias \
startx="startx $XDG_CONFIG_HOME/x11/xinitrc" \
startdwm="\startx $XDG_CONFIG_HOME/x11/xinitdwmrc" \
|