From 45e5ca162dd23b3614c67db94011644e1d13e92e Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 6 Nov 2020 22:12:33 -0600 Subject: [PATCH] Add work-mode script --- bin/work-mode | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/work-mode 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"