Can I add more exported variables to .bashrc and not use a config file? #507
-
I have I want to add |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
technically theres no support for exporting, but i suppose
also as of 2.0 use 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 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 |
Beta Was this translation helpful? Give feedback.
technically theres no support for exporting, but i suppose
export thumbnail_viewer=kitty
should workalso as of 2.0 use
video_pref
as opposed toYTFZF_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
im not 100℅ sure this works since i havemt tested it, but you can try
This does not work