Skip to content

Instantly share code, notes, and snippets.

@danielbayley
Last active May 16, 2020 00:27
Show Gist options
  • Save danielbayley/3910c3b392c53e857613db3bb68c46f5 to your computer and use it in GitHub Desktop.
Save danielbayley/3910c3b392c53e857613db3bb68c46f5 to your computer and use it in GitHub Desktop.
A shim for anka[-flow] by @veertuinc.
#! /bin/zsh -f
alias vm=anka
if (which -s anka) vm () {
set -- ${${@/ls/list}/-h*/--help}
case $@ in
view*) command anka start ${@:2} && command anka $@;;
l*s*img*) command anka "list${=*/*img/-images}";;
reg*) command anka registry ${@:2};;
*) command anka $@;;
esac
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment