Skip to content

Instantly share code, notes, and snippets.

@Jomik
Created April 29, 2019 15:22
Show Gist options
  • Save Jomik/524fea9916f4a32abe3300253d8c5be2 to your computer and use it in GitHub Desktop.
Save Jomik/524fea9916f4a32abe3300253d8c5be2 to your computer and use it in GitHub Desktop.
function __fasd_init -e fish_postexec -d "fasd takes record of the directories changed into"
set -lx RETVAL $status
if test $RETVAL -eq 0 # if there was no error
command fasd --proc (command fasd --sanitize (eval echo "$argv") | tr -s " " \n) > "/dev/null" 2>&1 &; disown
end
end
@zanchey
Copy link

zanchey commented Apr 30, 2019

This is definitely causing the problem described on IRC; eval echo "$argv" will certainly cause the behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment