Skip to content

Commit dfa5166

Browse files
committed
refactor(omz): update sgid alias to use .env
1 parent abc9d2d commit dfa5166

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

omz/customization.yaml

+14-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,20 @@
3434
alias zshconfig='vim ~/.zshrc'
3535
alias ohmyzsh='vim ~/.oh-my-zsh'
3636
alias home='deactivate; cd ~; clear'
37-
alias sgid-index='>&2 echo "starting sgid index update" && workon gis.utah.gov && >&2 echo "switching to master branch" && git checkout master && >&2 echo "updating from remote" && git up && >&2 echo "running python" && python datatable.py
37+
alias sgid-index='>&2 echo "starting sgid index update" &&
38+
cd ~/dev/gis.utah.gov &&
39+
source .env/bin/activate &&
40+
>&2 echo "switching to master branch" &&
41+
git checkout master &&
42+
>&2 echo "updating from remote" &&
43+
git up &&
44+
>&2 echo "running python" &&
45+
cd /scripts
46+
python datatable.py
47+
if git commit -am ":package: update sgid-index"
48+
then git push
49+
fi
50+
>&2 echo "done" && deactivate && cd ~/'
3851
if git commit -am ":package: update sgid-index"
3952
then git push
4053
fi

0 commit comments

Comments
 (0)