mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
w3m: Simplify function further.
This commit is contained in:
5
neofetch
5
neofetch
@@ -3560,10 +3560,7 @@ END
|
|||||||
get_w3m_img_path() {
|
get_w3m_img_path() {
|
||||||
# Find w3m-img path.
|
# Find w3m-img path.
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
w3m_paths=(
|
w3m_paths=({/usr/{local/,},~/.nix-profile/}{lib,libexec,lib64,libexec64}/w3m/w3mi*)
|
||||||
/usr/{local/,}{lib,libexec,lib64,libexec64}/w3m/w3mi*
|
|
||||||
~/.nix-profile/libexec/w3m/w3mi*
|
|
||||||
)
|
|
||||||
shopt -u nullglob
|
shopt -u nullglob
|
||||||
|
|
||||||
[[ -x "${w3m_paths[0]}" ]] && \
|
[[ -x "${w3m_paths[0]}" ]] && \
|
||||||
|
Reference in New Issue
Block a user