fish/functions/ep.fish @ 18cc4d4f4ac4
More
author |
Steve Losh <steve@stevelosh.com> |
date |
Fri, 18 Sep 2020 17:21:49 -0400 |
parents |
613dc4aa9f25 |
children |
(none) |
function ep -d "Edit .plan"
cd ~/plan
switch (hostname)
case alephnull
nvim README.markdown
make
cat README.markdown | sed -En 'H; /^## [0-9]{4}-[0-9]{2}-[0-9]{2}/h; ${g;p;}' | tail +3 > ~/.plan
git cm 'Update' -a
case '*'
hg pull -u
nvim README.markdown
cat README.markdown | sed -En 'H; /^## [0-9]{4}-[0-9]{2}-[0-9]{2}/h; ${g;p;}' | tail +3 > ~/.plan
hg ci -m 'Update'
hg push
hg push git
end
cd -
end