...
 
Commits (2)
......@@ -15,6 +15,7 @@ alias :e="${EDITOR}"
alias :q=exit
alias ptpb=pb
alias clbin=cb
if [ -x "$(getpath tree)" ]; then
alias t="tree -a -I '.git|.hg' --noreport -F --dirsfirst"
......
# vim:ft=sh
vimpath() {
vim "$(getpath "$1")"
}
# vim:ft=sh
require curl || exit 1
if [ -t 0 ] && [ -f "$1" ]; then
curl -F 'clbin=<'"$1" https://clbin.com
elif ! [ -t 0 ]; then
curl -F 'clbin=<-' https://clbin.com
else
echo "Usage: cb file"
echo "Usage: <command> 2>&1 | cb"
exit 1
fi