m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 15:23:48 -05:00

Simplify fzf-conda-activate preview command expression

Paul-Aime
2023-02-01 18:48:07 +01:00
parent 562e49a27a
commit ba3bf6b078

@@ -1545,12 +1545,9 @@ fzf-conda-activate () {
--preview-window="right:30%" \
--preview-label=" conda tree leaves " \
--preview=$'
line="{}";
line_arr=(${line:1:-1});
env_prefix="${line_arr[2]}";
conda tree -p "$env_prefix" leaves |
perl -F\'[^\\w-_]\' -lae \'print for grep /./, @F;\' |
sort
conda tree -p {3} leaves |
perl -F\'[^\\w-_]\' -lae \'print for grep /./, @F;\' |
sort
'
)
)