Migrate everything to GNU Stow locations instead of homeshick

This commit is contained in:
Danielle McLean 2016-10-03 22:52:15 +11:00
parent 54587a49ff
commit 82c930f4d5
No known key found for this signature in database
GPG key ID: CC91589719027E94
24 changed files with 1 additions and 5 deletions

5
.zsh/functions/composer Normal file
View file

@ -0,0 +1,5 @@
#! zsh
# Composer runs significantly faster if xdebug is unloaded.
local conf="$(php -r 'echo dirname(php_ini_loaded_file());')"
(cd $conf; rsync -ar --delete-after --exclude ext-xdebug.ini conf.d/ conf-without-xdebug.d/)
PHP_INI_SCAN_DIR=$conf/conf-without-xdebug.d php =composer "$@"

2
.zsh/functions/enphp Normal file
View file

@ -0,0 +1,2 @@
#! zsh
cat $argv | php -r 'echo serialize( json_decode( file_get_contents( "php://stdin" ) ) );'

View file

@ -0,0 +1,7 @@
#! zsh
if [[ -z $BUFFER && -n $jobstates ]]; then
BUFFER=" fg"
zle accept-line
else
zle self-insert '^Z'
fi

2
.zsh/functions/unphp Normal file
View file

@ -0,0 +1,2 @@
#! zsh
cat $argv | php -r 'echo json_encode( unserialize( file_get_contents( "php://stdin" ) ) );'