add file read and write to zsh

master
Mr. Robot 3 years ago committed by GitHub
parent 08b481e4f6
commit 5e543dc9ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,5 +1,15 @@
{ {
"functions": { "functions": {
"file-read": [
{
"code": "zsh -c 'echo \"$(<[file])\"'\n"
}
],
"file-write": [
{
"code": "zsh -c 'echo [data] >[file]'\n"
}
],
"shell": [ "shell": [
{ {
"code": "zsh" "code": "zsh"
@ -16,4 +26,4 @@
} }
] ]
} }
} }

Loading…
Cancel
Save