8 alias xc
='xclip -sel clip'
9 alias fonts
=" fc-list | sed 's/^.*: //' | awk -F: '{print $1}' | sort | uniq"
10 alias lsb
="dmesg | egrep '^(cd|wd|sd|fd). at ' | sort | uniq"
11 alias sc
="rsync -avzhe ssh --progress"
12 alias cpp
="rsync -avzhe --progress"
13 alias val
="valgrind --trace-children=yes --track-fds=yes --track-origins=yes --leak-check=full --show-leak-kinds=all -s"
14 alias wgetf
="wget --tries=100 --continue --content-disposition --trust-server-names -i"
15 alias egyb
=" cd ~/downloads && python /mnt/data/dev/archived/egybest_downloader/egybest_unix.py"
16 alias ya
="youtube-dl -i --add-metadata -f bestaudio"
17 alias yv4
="youtube-dl -i --add-metadata -f 'bestvideo[height<=480]+bestaudio/best[height<=480]'"
18 alias yv7
="youtube-dl -i --add-metadata -f 'bestvideo[height<=720]+bestaudio/best[height<=720]'"
19 alias yvp4
="yv4 -o \"%(autonumber)s-%(title)s.%(ext)s\""
20 alias yvp7
="yv7 -o \"%(autonumber)s-%(title)s.%(ext)s\""
21 [ "$(uname)" = "OpenBSD" ] && alias ls='colorls -GA' ||
alias ls='ls --color=always -A'
22 [ "$(uname)" = "OpenBSD" ] && alias gr
='grep -Inr' ||
alias gr
='grep -Inr --color=always'
25 [ "$(id -u)" = 0 ] && col="9m" ||
col="24m"
26 export PS1
="\[\033[38;5;$col\]\W \033[38;5;166m\]\$(git branch --show-current 2>/dev/null)\[\033[00m\] "
29 [ -f "$1" ] && case $1 in
30 *.
tar.bz2
) tar xjf
"$1";;
31 *.
tar.gz
) tar xzf
"$1";;
32 *.
tar.xz
) tar xf
"$1";;
33 *.
tar.zst
) tar -I zstd
-xvf "$1";;
35 *.tbz2
) tar xjf
"$1";;
43 *.Z
) uncompress "$1";;
44 *) echo "'$1' cannot be extracted.";;
49 cp /mnt
/data
/dev
/openbsd_clang-format
/.clang-format .
50 clang-format
-style=file -i $1
60 [ -f "$1" ] ||
[ -d "$1" ] && tar -czvf "$dir.tar.gz" -C "$1/.." "$dir"
64 [ -f "$1" ] ||
[ -d "$1" ] &&
65 find "$1" -type d
-exec chmod 700 {} \
; &&
66 find "$1" -type f
-exec chmod 600 {} \
; &&
67 chown
-R $USER "$1" && chgrp
-R $USER "$1"