mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 07:43:39 -05:00
Simplify fzf-conda-activate preview command expression
@@ -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
|
||||
'
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user