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