Add work-mode script

This commit is contained in:
Daniel Flanagan 2020-11-06 22:12:33 -06:00
parent 2f738430d3
commit 45e5ca162d
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
1 changed files with 11 additions and 0 deletions

11
bin/work-mode Executable file
View File

@ -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"