mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 19:41:15 -03:00
Ensure stdin is redirected to python
This commit is contained in:
committed by
Fabian Homborg
parent
45b1ca25a5
commit
adfe8d681d
@@ -53,7 +53,7 @@ function __bower_list_installed
|
|||||||
if set -l python (__fish_anypython)
|
if set -l python (__fish_anypython)
|
||||||
# Warning: That weird indentation is necessary, because python.
|
# Warning: That weird indentation is necessary, because python.
|
||||||
$python -S -c 'import json, sys; data = json.load(sys.stdin);
|
$python -S -c 'import json, sys; data = json.load(sys.stdin);
|
||||||
for k,v in data["dependencies"].items(): print(k + "\t" + v[:18])' bower.json 2>/dev/null
|
for k,v in data["dependencies"].items(): print(k + "\t" + v[:18])' <bower.json 2>/dev/null
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user