diff --git a/bin/work-mode b/bin/work-mode new file mode 100755 index 0000000..54abe2b --- /dev/null +++ b/bin/work-mode @@ -0,0 +1,11 @@ +#!/usr/bin/env fish + +if not test "$_" = exec + echo 'Run with `exec`' + exit 1 +end + +set -l work_conf_dir $ENV_PATH/.hidden/fish.d/postmates +test -d $work_conf_dir || \ + git clone git@github.com:lytedev/postmates.git $work_conf_dir +fish --interactive --init-command "source $work_conf_dir/config.fish"