Fish dynamically define a function -


function fish_title; echo bar; end 

i'd create set_title function give equivalent result of above i.e. running set_title bar. ideas?

i now. need this:

function set_title -a new_title     eval "function fish_title; echo $new_title; end" end 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -