You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
339 B
Bash
8 lines
339 B
Bash
#!/usr/bin/env sh
|
|
# generate w3m functions to proper formatting for fzf menu
|
|
cat /usr/share/doc/w3m/README.func | while read -r line; do
|
|
func_name="$(echo "$line" | awk '{print $1;}')"
|
|
description="$(echo "$line" | awk '{for (i=2; i<NF; i++) printf $i " "; print $NF}')"
|
|
echo "${func_name}#@${func_name}\\\$#-- ${description}"
|
|
done
|