Fish shell automatic directory specific functions -
is possible have fish automatically load additional configurations based on directory in? possible example, doesn't work. navigate project folder:
cd ~/my_proj
there file in folder called .fish.config
contains special fish function accessible (since in my_proj
).
is there built-in mechanism in fish allows loading fish config file when navigating directory (similar above)?
take @ --on-variable
flag function
statement. can define function runs whenever pwd changes:
function react_to_pwd --on-variable pwd echo reacting pwd changing $pwd end
Comments
Post a Comment