#!/bin/env fish function chooseDisk -a result message set -l file (mktemp) fish "$(status dirname)/../../lib/modules/partition/choose-disk.fish" "$file" "$message" set -g "$result" (cat "$file") end