aboutsummaryrefslogtreecommitdiff
path: root/config/zsh/aliases.zsh
blob: 32586e0408b2ccf436b37fccf657f8c87773c3c5 (plain) (blame)
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
for f in $ZSH_CUSTOM_CONF_FILES/aliases/*.zsh; do source $f; done;

alias grep="grep --color=auto";

# Application shortcuts
alias emedit="emacsclient -c -n";
alias e="sensible-editor";
alias v="nvim";
alias o='open $(fzf)';

alias j='just';
alias jl='just -l';

# Load work aliases
# source "$HOME/.work-config/zshconf/aliases.zsh";

# Utility stuff
alias clock="tty-clock -t -b -c";
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"';
alias show-mobile-screen="adb shell screenrecord --output-format=h264 - | ffplay -";

# QR file transfer
alias qr-send="qrcp";
alias qr-get="qrcp receive";
qr-str() { curl qrenco.de/$1; }

# Audio download
alias dl-audio="youtube-dl --ignore-errors --output '%(title)s.%(ext)s' --extract-audio";

# Swallow window
alias smpv="swallow mpv";
alias ssxiv="swallow sxiv";
alias szathura="swallow zathura";

# Dictionary
dict() { curl dict://dict.org/d:$1; }