1
0
This commit is contained in:
Deven Blake 2021-04-07 11:06:59 -04:00
parent f04c7f1ff5
commit 4b6747671f

View File

@ -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
}