dotfiles

My personal dotfiles (see readme)
git clone git://git.luxferre.top/dotfiles.git
Log | Files | Refs | README

.aliases (1249B)


      1 # shell-independent alias collection by Luxferre
      2 
      3 # abduco shortcuts
      4 alias ab=abduco
      5 alias aba='abduco -A'
      6 
      7 # dtach shortcut (for OpenBSD servers)
      8 alias dt='ENV="$HOME/.kshrc" dtach -A /tmp/dsession $SHELL'
      9 
     10 # use on Alpine/OpenBSD
     11 alias sudo=doas
     12 alias rootsh='doas $SHELL'
     13 
     14 # use elsewhere
     15 # alias doas=sudo
     16 
     17 # ed maxout (requires rlwrap)
     18 alias ee='rlwrap ed -p:'
     19 alias eer='doas rlwrap ed -p:'
     20 
     21 # one-line notetaking (in twtxt format)
     22 alias n='echo -e "$(date -Im)\t$*" >> ~/n'
     23 
     24 # rot13 masking
     25 alias r13='r13(){ echo "$*" | tr "A-Za-z" "N-ZA-Mn-za-m"; }; r13'
     26 
     27 # some Tor-related aliases
     28 
     29 # reset tor circuit for torified programs (requires control port 9051)
     30 alias tornew='echo -e "AUTHENTICATE \"\"\r\nsignal NEWNYM\r\nQUIT" | nc 127.0.0.1 9051'
     31 # most efficient downloads via Tor (torify + aria2)
     32 alias toraria='torify aria2c --async-dns=false -x 16 -j 16'
     33 
     34 # multimedia aliases
     35 
     36 # use on framebuffer-based systems (requires mpv and pipe-viewer)
     37 alias fbstream='mpv --vo=drm --ytdl-format="bestvideo[height<=?768][vcodec!=vp9]+bestaudio/best"'
     38 alias yt='pipe-viewer --player=mpv --append-arg="--vo=drm" -7'
     39 
     40 # twitch-chat-cli helper (requires pass utility)
     41 alias twitchat='$HOME/twitch-chat-cli --accounts "$(pass twitch/secret)" --channels'