blob: a073b76af63f7ea91903976f66b4b46e8a833fb7 (
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
|
#!/bin/sh
# Add color to commands
alias \
diff="diff --color=auto" \
dir="dir --color=auto" \
vdir="vdir --color=auto" \
egrep="egrep --color=auto" \
fgrep="fgrep --color=auto" \
grep="grep --color=auto" \
ls="ls --group-directories-first --color=auto"
# Git
alias \
g='git' \
ga='git add' \
gc='git commit -m' \
gd='git diff' \
gl='git log' \
gp='git push' \
gs='git status' \
gdf='git --git-dir=$HOME/repos/dotfiles/ --work-tree=$HOME' \
gda='git --git-dir=$HOME/repos/dotfiles/ --work-tree=$HOME add' \
gdc='git --git-dir=$HOME/repos/dotfiles/ --work-tree=$HOME commit -e -m' \
gdd='git --git-dir=$HOME/repos/dotfiles/ --work-tree=$HOME diff' \
gdl='git --git-dir=$HOME/repos/dotfiles/ --work-tree=$HOME log' \
gdp='git --git-dir=$HOME/repos/dotfiles/ --work-tree=$HOME push' \
gds='git --git-dir=$HOME/repos/dotfiles/ --work-tree=$HOME status'
# Shorten other commands
alias \
ap="ansible-playbook -i inventory.yml -b --ask-vault-pass" \
calsync='CALCURSE_CALDAV_PASSWORD=$(pass show web/radicale.chudnick.com | head -1) calcurse-caldav' \
ports="ss -tuanp" \
py="python3" \
rb="/usr/sbin/reboot" \
sd="/usr/sbin/shutdown now" \
sx="startx" \
svm="sudo systemctl start libvirtd" \
v="vim" \
yta="yt-dlp -f bestaudio --remux-video ogg --download-archive ~/.local/share/yt-dlp/archive" \
ytv="yt-dlp -f bestvideo\[height\<=1080\]+bestaudio/best\[height\<=1080\] --download-archive ~/.local/share/yt-dlp/archive" \
z="zathura" \
revert='virsh snapshot-revert web --snapshotname $(virsh snapshot-current web --name)'
# Start commands with specific options always
alias \
abook="abook --config ~/.config/abook/abookrc --datafile ~/.local/share/abook/addressbook" \
cp="cp -iv" \
ffmpeg="ffmpeg -hide_banner" \
mv="mv -iv" \
mutt="firejail neomutt"
neomutt="firejail neomutt" \
rm="rm -Iv" \
|