From 93ff382dfee8f81238fc1d0ff0ff9a7dd530284c Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Mon, 9 Apr 2018 08:34:26 +1000 Subject: [PATCH] Remove the unphp function because PHP unserialisation is actually quite complex and is best handled with an actual PHP script rather than a tiny shell fnction --- config/zsh/all/functions | 2 +- config/zsh/functions/unphp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 config/zsh/functions/unphp diff --git a/config/zsh/all/functions b/config/zsh/all/functions index e9979a9..5a8e892 100644 --- a/config/zsh/all/functions +++ b/config/zsh/all/functions @@ -2,5 +2,5 @@ # autoloaded functions must be declared in every kind of zsh: they aren't # inherited in the environment so non-login shells need them, and you'll want # to call one in a script so non-interactive shells need them. -autoload enphp unphp +autoload enphp autoload -Uz zargs zmv diff --git a/config/zsh/functions/unphp b/config/zsh/functions/unphp deleted file mode 100644 index 656ba21..0000000 --- a/config/zsh/functions/unphp +++ /dev/null @@ -1,2 +0,0 @@ -#! zsh -cat $argv | php -r 'echo json_encode( unserialize( file_get_contents( "php://stdin" ) ) );'