diff options
author | Euro20179 <f> | 2021-03-02 16:10:50 -0800 |
---|---|---|
committer | Euro20179 <f> | 2021-03-02 16:10:50 -0800 |
commit | 2bf0ef71fafab2daa118f42c35ff9369f047d9e7 (patch) | |
tree | 6e6da8505fa594446569a93d9daad2f8479e4005 | |
parent | 77e339a99d233f434923e506236d0a0c28e22022 (diff) | |
download | ytfzf-2bf0ef71fafab2daa118f42c35ff9369f047d9e7.tar.gz |
search_prompt variable
-rwxr-xr-x | ytfzf | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -53,9 +53,15 @@ YTFZF_EXTMENU_LEN=$YTFZF_EXTMENU_LEN YTFZF_PLAYER=\"$YTFZF_PLAYER\" YTFZF_PLAYER_FORMAT=\"$YTFZF_PLAYER_FORMAT\" YTFZF_ENABLE_FZF_DEFAULT_OPTS=$YTFZF_ENABLE_FZF_DEFAULT_OPTS + +#Other settings +search_prompt=\"Search Youtube: \" " > "$config_file" fi +#> settings only set in config +search_prompt="${search_prompt-Search Youtube: }" + # DEP CHECK dep_ck () { for dep in "$@"; do @@ -322,7 +328,7 @@ get_search_query () { if [ $is_ext_menu -eq 1 ]; then search_query="$(printf "" | $YTFZF_EXTMENU)" else - printf "Search Youtube: " + printf "$search_prompt" read search_query fi [ -z "$search_query" ] && { exit 0; } |