fish/functions/ep.fish @ b67a34a9c6b0
Kill git prompt for NOVCSPROMPT too
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 01 Feb 2020 20:00:13 -0500 |
parents |
5233df61134b |
children |
613dc4aa9f25 |
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
git push origin master
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