You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Currently the script is for POSIX shell, and does not work in fish as is.
I, as a someone who doesn't know anything about fish, believe that it should work though by replacing it in fish syntax and add to config file of fish. Could you give it a try?
FYI, fx --init outputs these lines:
eval "$(
if [ -n "$XDG_RUNTIME_DIR" ]; then
runtime_dir="$XDG_RUNTIME_DIR/felix"
elif [ -n "$TMPDIR" ]; then
runtime_dir="$TMPDIR/felix"
else
runtime_dir=/tmp/felix
fi
mkdir -p "$runtime_dir"
# Clean up leftover LWD files
find "$runtime_dir" -type f -and -mmin +1 -delete
cat << EOF
fx() {
local RUNTIME_DIR="$runtime_dir"
SHELL_PID=\$\$ command fx "\$@"
if [ -f "\$RUNTIME_DIR/\$\$" ]; then
cd "\$(cat "\$RUNTIME_DIR/\$\$")"
rm "\$RUNTIME_DIR/\$\$"
fi
}
EOF
)"
How to configure lwd functionality in the fish environment?
The text was updated successfully, but these errors were encountered: