diff --git a/fish/functions/fishcognito.fish b/fish/functions/fishcognito.fish deleted file mode 100644 index 807d081..0000000 --- a/fish/functions/fishcognito.fish +++ /dev/null @@ -1,3 +0,0 @@ -function fishcognito --description "Start a new shell in private mode" - fish --private -end diff --git a/fish/functions/fishy.fish b/fish/functions/fishy.fish new file mode 100644 index 0000000..bad54e4 --- /dev/null +++ b/fish/functions/fishy.fish @@ -0,0 +1,17 @@ +function fishy -d "Run fish in a non-standard way" -a fishy_opt + if test -z "$fishy_opt" + printf "How do you want to run fish?\n 1) In private mode\n 2) With default config\n" + read fishy_opt -P "> " + end + switch $fishy_opt + case 1 + echo "Starting fish in private mode..." + fish --private + case 2 + echo "Starting fish with default configuration..." + HOME=(mktemp -d) fish + case '*' + echo (set_color red)"Invalid option: [$fishy_opt]"(set_color normal) + return 1 + end +end