]> git.armaanb.net Git - dotfiles.git/blob - .kshrc
Initial commit
[dotfiles.git] / .kshrc
1 set -o vi
2 ulimit -c unlimited
3 alias rsync="openrsync -rv"
4 export CDPATH=:~
5 alias ls="LC_COLLATE=C ls -lhF"
6 alias rm="rm -iv"
7 alias cp="cp -riv"
8 alias mv="mv -iv"
9 alias grep="grep -in"
10 alias nl="nl -b all"
11 alias rclone="rclone -P"
12 alias mosh="env LC_CTYPE=en_US.UTF-8 mosh"
13 alias ytmusic="youtube-dl --add-metadata --extract-audio --audio-format vorbis --restrict-filenames -o '%(title)s.%(ext)s'"
14
15 stty dsusp undef
16
17 alias mspdf="groff -Tpdf -M ~/var/docs -ms -macheam"
18
19 rpdf() {
20         tmp=/tmp/rpdf${RANDOM}.pdf
21         mspdf $1 > $tmp
22         zathura $tmp &
23         fwa $1 | while read; do mspdf $1 > $tmp; done
24         rm -f $tmp
25 }
26
27 dosa() {
28         echo "Dosa! Yum yum yum"
29         doas $@
30 }
31
32 watch() {
33         inp=$1
34         shift
35         fwa $inp | while read; do $@; done
36 }
37
38 alias wttr='curl wttr.in?format="%l+%T\n%C+%t\nSunrise:+%S,+Sunset+%s\n"'
39 alias nv="nvim"
40 alias dotgit="git --git-dir=~/.local/share/dotfiles --work-tree=~"