commit 35d140478ec53b358936bddd961b124763dd4b0c parent ab1751ce624d9c526eafd61754efd3564ff73f86 Author: finwo <finwo@pm.me> Date: Thu, 10 Oct 2019 15:50:42 +0200 Added symfony support in zshrc; re-added 'version' check Diffstat:
| M | zsh/home/.zshrc | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/zsh/home/.zshrc b/zsh/home/.zshrc @@ -39,6 +39,13 @@ function composer { return 1 } +# https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c +function version() { + curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api + grep '"tag_name":' | # Get tag line + sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value +} + # }}} # Aliases {{{ @@ -130,3 +137,8 @@ if [ -d "${HOME}/go/bin" ]; then export PATH="${HOME}/go/bin:${PATH}" fi # }}} +# Symfony {{{ +if [ -d "${HOME}/.symfony/bin" ]; then + export PATH="${HOME}/.symfony/bin:${PATH}" +fi +# }}}