aeab9d321fea

Add fish functions
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 30 Jun 2016 11:42:00 +0000
parents 774253fee5f6
children 54633d8bf6d8
branches/tags (none)
files fish/functions/dump.fish fish/functions/ep.fish fish/functions/wget-single.fish fish/functions/wget-site.fish

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fish/functions/dump.fish	Thu Jun 30 11:42:00 2016 +0000
@@ -0,0 +1,15 @@
+function dump -d "dump to/from the internet"
+    hg -R ~/.plan push
+
+    hg -R ~/src/bones push
+    hg -R ~/src/bones push git
+
+    hg -R ~/src/mazes push
+    hg -R ~/src/mazes push git
+
+    hg -R ~/src/coding-math push
+
+    hg -R ~/lib/dotfiles push
+
+    offlineimap -qf INBOX
+end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fish/functions/ep.fish	Thu Jun 30 11:42:00 2016 +0000
@@ -0,0 +1,3 @@
+function ep -d "Edit .plan"
+    vim ~/.plan/README.markdown; and hg -R ~/.plan ci -m 'Update'
+end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fish/functions/wget-single.fish	Thu Jun 30 11:42:00 2016 +0000
@@ -0,0 +1,3 @@
+function wget-single -d "wget a single page"
+    wget --no-parent --timestamping --convert-links --page-requisites --no-directories --no-host-directories --span-hosts --adjust-extension $argv
+end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fish/functions/wget-site.fish	Thu Jun 30 11:42:00 2016 +0000
@@ -0,0 +1,3 @@
+function wget-site -d "wget an entire site"
+    wget --mirror --convert-links --adjust-extension --page-requisites --no-parent --wait=1 $argv
+end