diff --git a/groff/math.tmac b/groff/math.tmac index 9f61d41..dad08be 100644 --- a/groff/math.tmac +++ b/groff/math.tmac @@ -22,6 +22,7 @@ define and '{ \[AN] }' define div '{ \[di] }' define grad '{ \[gr] }' define aleph '{ \[Ah] }' +define forall '{ \[fa] }' define sen 'roman "sen"' define tan 'roman "tan"' define sec 'roman "sec"' diff --git a/scripts/serve-php b/scripts/serve-php new file mode 100755 index 0000000..568202c --- /dev/null +++ b/scripts/serve-php @@ -0,0 +1,11 @@ +#!/bin/sh + +# Look for ifconfig +[ -e "/sbin/ifconfig" ] && CMD="/sbin/ifconfig" +[ -e "$(which ifconfig)" ] && CMD="ifconfig" +[ -n "$CMD" ] || error "ifconfig not found" + +# Use ifconfig to get ip address +ADDR="$($CMD | grep -o '192\.168\.[0-9]*\.[0-9]*' | head -n 1)" + +php -S "$ADDR":8000 -t . diff --git a/scripts/serve-py b/scripts/serve-py new file mode 100755 index 0000000..949b719 --- /dev/null +++ b/scripts/serve-py @@ -0,0 +1,11 @@ +#!/bin/sh + +# Look for ifconfig +[ -e "/sbin/ifconfig" ] && CMD="/sbin/ifconfig" +[ -e "$(which ifconfig)" ] && CMD="ifconfig" +[ -n "$CMD" ] || error "ifconfig not found" + +# Use ifconfig to get ip address +ADDR="$($CMD | grep -o '192\.168\.[0-9]*\.[0-9]*' | head -n 1)" + +python -m http.server -b "$ADDR" diff --git a/scripts/share-local b/scripts/share-local index c05444b..d439962 100755 --- a/scripts/share-local +++ b/scripts/share-local @@ -21,7 +21,7 @@ LOC="$1" ; [ -n "$LOC" ] || help [ -n "$CMD" ] || error "ifconfig not found" # Use ifconfig to get ip address -ADDR="$($CMD | grep 'broadcast' | sed 's/\s*inet\s*//g;s/\s*netmask.*//g')" +ADDR="$($CMD | grep -o '192\.168\.[0-9]*\.[0-9]*' | head -n 1)" # If location is directory, define DIR as location, # otherwise, define DIR as TEMP_DIR diff --git a/shell/aliasrc b/shell/aliasrc index 285723e..e007eb2 100644 --- a/shell/aliasrc +++ b/shell/aliasrc @@ -33,6 +33,7 @@ alias \ df-short="df -h | grep -v '\s/dev.*$\|\s/run.*$\|\s/boot.*$'" \ wacom-setup-menu="wacom-setup menu" \ notes="note list" \ + clip="xsel -ib" \ def="dict" \ # Launch args