Commit | Line | Data |
---|---|---|
ca7a6ccf SK |
1 | # Top Disk-Using directories |
2 | tdu() { | |
3 | du "$1" \ | |
4 | | sort -n -k 1 -r --parallel="$(nproc)" \ | |
5 | | head -50 \ | |
6 | | awk ' | |
7 | { | |
8 | size = $1 | |
9 | path = $0 | |
10 | sub("^" $1 "\t+", "", path) | |
11 | gb = size / 1024 / 1024 | |
12 | printf("%f\t%s\n", gb, path) | |
13 | }' \ | |
14 | | cut -c 1-115 | |
15 | } | |
16 | ||
17 | void_pkgs() { | |
18 | curl "https://xq-api.voidlinux.org/v1/query/x86_64?q=$1" | jq '.data' | |
19 | } | |
20 | ||
21 | man() { | |
22 | LESS_TERMCAP_md=$'\e[01;31m' \ | |
23 | LESS_TERMCAP_me=$'\e[0m' \ | |
24 | LESS_TERMCAP_se=$'\e[0m' \ | |
25 | LESS_TERMCAP_so=$'\e[01;44;33m' \ | |
26 | LESS_TERMCAP_ue=$'\e[0m' \ | |
27 | LESS_TERMCAP_us=$'\e[01;32m' \ | |
28 | command man "$@" | |
29 | } | |
30 | ||
31 | alias l='ls -lFhv' | |
32 | alias ll='l -a' | |
33 | alias lll='ll --color=never' | |
34 | alias tree='tree --dirsfirst' | |
35 | alias fsi='ledit ~/.dotnet/dotnet ~/.dotnet/sdk/2.1.503/FSharp/fsi.exe' | |
36 | alias tm='tmux' | |
37 | ||
38 | PATH=$HOME/bin:/snap/bin:/sbin:/usr/sbin:$PATH | |
39 | EDITOR=vim |