fasd: Fix directory display to work on all shells

Fixed printing of ingested directories to use printf which works on all
shells instead of zsh specific print.
This commit is contained in:
Marty Oehme 2021-07-07 10:28:15 +02:00
parent bb9030f885
commit 31a2c283df
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -25,7 +25,7 @@ fasd_cd() {
if [ -d "$fasd_ret" ]; then if [ -d "$fasd_ret" ]; then
cd "$fasd_ret" || exit cd "$fasd_ret" || exit
else else
print "$fasd_ret" printf "%s\n" "$fasd_ret"
fi fi
unset fasd_ret unset fasd_ret
} }