-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliasrc
93 lines (83 loc) · 3.25 KB
/
.aliasrc
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
#!/bin/sh
#
# --- ALIASES FOR BASH AND ZSH ---
#
# shortcuts to config files
alias zshconfig="$EDITOR ~/.config/zsh/.zshrc" \
polybarconfig="$EDITOR ~/.config/polybar/config" \
i3config="$EDITOR ~/.config/i3/config" \
nvimconfig="$EDITOR ~/.config/nvim/" \
tmuxconfig="$EDITOR ~/.config/tmux/tmux.conf" \
aliasconfig="$EDITOR ~/.aliasrc" \
dotconfig="$EDITOR ~/.dotfiles/config.yaml"
# system commands
alias ka="killall" \
mkd="mkdir -pv" \
p="sudo pacman" \
y="yay --sudoloop -Syu" \
SS="sudo systemctl" \
ls="ls --color=auto --group-directories-first" \
grep="grep --color=auto" \
diff="diff --color=auto" \
sysinfo="neofetch | lolcat" \
cal="cal -m" \
la="ls -a" \
ll="ls -lah" \
vim="nvim" \
svim="sudo nvim" \
py="python" \
tmux="tmux -2"
# other aliases
alias sl="sl && clear" \
SL="sl && clear" \
dc="figlet 'TYPO'" \
DC="figlet 'TYPO'" \
feh="feh --image-bg black -Z -." \
tutorium="pdfpc -d 90 -l 10" \
clock="clockywock" \
clock2="while true; do tput clear; date +'%H : %M : %S' | figlet -c -w 280 ; sleep 1; done" \
matrix="cmatrix | lolcat" \
pi="echo 'scale=14; 4*a(1)' | bc -l | figlet | lolcat" \
wttr="curl wttr.in" \
viminfo='i3-msg exec "feh --image-bg black -Z -. ~/Pictures/vimcheatsheet.jpg"' \
yt="youtube-dl -i" \
ytm="yt -x -f bestaudio/best" \
ncmp="ncmpcpp -q -c ~/.config/ncmpcpp/config" \
dotdrop="dotdrop --cfg=~/.dotfiles/config.yaml" \
dotgit="git -C ~/.dotfiles/dotfiles" \
dotsync="dotgit pull && dotgit add -A && dotgit commit && dotgit push; dotdrop install" \
...="cd ../.." \
..2="cd ../.." \
....="cd ../../.." \
..3="cd ../../.." \
.....="cd ../../../.." \
..4="cd ../../../.." \
......="cd ../../../../.." \
..5="cd ../../../../.." \
kappa="vboxmanage startvm kappa" \
kappad="vboxmanage controlvm kappa poweroff" \
temple="vboxmanage startvm temple" \
templed="vboxmanage controlvm temple poweroff" \
nachrichten="nachrichten -config ~/.config/nachrichten/config.yaml" \
news="nachrichten -shortnews -config ~/.config/nachrichten/config.yaml"
# shortcuts for streamlink
alias ard="streamlink live.daserste.de best" \
zdf="streamlink zdf.de/live-tv best" \
trill="streamlink twitch.tv/trilluxe best"
# git shortcuts
alias g="git" \
ga="git add" \
gco="git checkout" \
gcm="git checkout master" \
gcb="git checkout -b" \
gb="git branch" \
gc="git commit" \
gca="git commit --amend" \
gd="git diff" \
gp="git push" \
gpl="git pull" \
gs="git status" \
gl="git log --decorate --oneline" \
gh="git log --pretty=format:'%Cblue%h %Cgreen %ar%Creset %s'" \
gg="git log --graph --abbrev-commit --decorate --format=format:'%C()%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all" \
gcl="git branch --merged | grep -v '\*\|master\|main' | xargs -n 1 git branch -d"