Skip to content

Can I add more exported variables to .bashrc and not use a config file? #507

Answered by Euro20179
David-Else asked this question in Q&A
Discussion options

You must be logged in to vote

technically theres no support for exporting, but i suppose

export thumbnail_viewer=kitty should work

also as of 2.0 use video_pref as opposed to YTFZF_PREF

Another solution would be to have a wrapper script that looks somethibg like this

#!/usr/share/local/bin/ytfzf

thumbnail_viewer=kitty
video_pref=...

replace the shebang to the path to ytfzf

edit:

you could also have a function in .bashrc that looks something like

ytfzf() {
    video_pref="..." command ytfzf --thumb-viewer=kitty "$@"
}

im not 100℅ sure this works since i havemt tested it, but you can try

This does not work

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@David-Else
Comment options

Answer selected by David-Else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants