Last active
May 16, 2020 00:27
-
-
Save danielbayley/3910c3b392c53e857613db3bb68c46f5 to your computer and use it in GitHub Desktop.
A shim for anka[-flow] by @veertuinc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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