From 4b6747671fa5f0b70958181e0e2a40346c1a29cc Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Wed, 7 Apr 2021 11:06:59 -0400 Subject: [PATCH] less --- dotfiles-old/.aliases | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/dotfiles-old/.aliases b/dotfiles-old/.aliases index 4e85692..e6807b6 100755 --- a/dotfiles-old/.aliases +++ b/dotfiles-old/.aliases @@ -1,3 +1,5 @@ +#!/bin/sh + # audio drive alias audio="sudo mount -L 'AUDIO' /mnt/audio" @@ -5,8 +7,6 @@ alias awk="nawk" alias cat="9 cat" alias cls="clear" alias cp="cp -iv" -alias emacs="vi" # that'll freak people out -alias imount="idevicepair pair && sudo ifuse -o allow_other /mnt/iphone/" alias ipconfig="ifconfig" alias ls="9 ls" @@ -19,20 +19,13 @@ mnt() { alias mv="mv -iv" alias p="ping 1.1.1.1" -# my media hard drive +# media hard drive alias partone="sudo mount -L 'PARTONE' /mnt/partone" -# copy web-browser path to file to clipboard -path() { - printf "file://%s" $(realpath $1) | xclip -} - pyenv() { - if [ $# -eq 0 ]; then - . ./bin/activate - else - . $1/bin/activate - fi + eq $# 0 \ + && . ./bin/activate \ + || . $1/bin/activate } alias sensors="watch sensors" @@ -42,14 +35,10 @@ alias taboff="xsetwacom set 'Wacom Intuos2 6x8 Pen stylus' MapToOutput LVDS-1" alias tabon="xsetwacom set 'Wacom Intuos2 6x8 Pen stylus' MapToOutput VGA-1" alias tracert="tracepath" - -# dirtbag aliases to get myself to use vim more -alias emacs="vim" -alias ne="vim" +alias units="units --history /dev/null" alias vi="vim" - alias weather="curl wttr.in/lewiston+maine?m" webm() { - ffmpeg -i $1 -c:v libvpx -b:v 1M -c:a libvorbis $(printf "$1" | asplit . 0).webm + ffmpeg -i $1 -c:v libvpx -b:v 1M -c:a libvorbis "$(printf "$1" | awk -F '.' '{print $1}')".webm }