-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzsh_aliases
39 lines (29 loc) · 1.07 KB
/
zsh_aliases
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
# -*- mode: shell-script; -*-
alias df='df -h'
alias du='du -h'
alias pgrep='pgrep -l'
alias diff='colordiff'
alias pisg='$HOME/src/pisg/pisg'
alias skype='PULSE_LATENCY_MSEC=60 skype'
alias praat='PULSE_LATENCY_MSEC=60 praat'
alias gthumb='nomacs'
alias mplayer='mpv'
alias redis-cli="noglob redis-cli"
if (($+commands[streamlink])); then
alias livestreamer='streamlink'
fi
function livestreamer-twitch() {
livestreamer -p mpv "https://twitch.tv/$1" best
}
alias streamlink-twitch='livestreamer-twitch'
function calc() {
noglob awk "BEGIN{ print $* }";
}
alias calc='noglob calc'
# https://unix.stackexchange.com/questions/384101/have-pacmatic-wrap-yay-wrap-powerpill-wrap-pacman/384102#384102
alias pac=yay # For convenience
# pacmatic needs to be run as root: https://github.com/keenerd/pacmatic/issues/35
alias pacmatic='sudo --preserve-env=pacman_program /usr/bin/pacmatic'
# Downgrade permissions as AUR helpers expect to be run as a non-root user. $UID is read-only in {ba,z}sh.
alias paru='pacman_program="sudo -u #$UID /usr/bin/paru" pacmatic'
alias yay=paru