This commit is contained in:
Daniel Flanagan 2022-05-25 13:14:36 -05:00
parent a1b5a32a82
commit 4a4392a3d2
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
2 changed files with 13 additions and 5 deletions

View file

@ -1 +1 @@
/Users/danielflanagan/.config/lytedev-dotfiles/common/colors/vim /home/daniel/.home/.config/lytedev-dotfiles/common/colors/vim

View file

@ -5,7 +5,15 @@ set h $argv[2]
set c $argv[3] set c $argv[3]
pushd (dirname $me) pushd (dirname $me)
sudo ln -s (pwd)/user-public-http.conf /etc/nginx/user-public-http.conf function force_link
sudo ln -s (pwd)/user-public-server.conf /etc/nginx/user-public-server.conf sudo rm -f "$argv[2]"
sudo ln -s (pwd)/.nginx-autoindex-before.html /usr/share/nginx/html/.nginx-autoindex-before.html echo "Linking $argv[1] to $argv[2]"
sudo ln -s (pwd)/.nginx-autoindex-after.html /usr/share/nginx/html/.nginx-autoindex-after.html sudo ln -s "$argv[1]" "$argv[2]"
end
force_link (pwd)/user-public-http.conf /etc/nginx/user-public-http.conf
force_link (pwd)/user-public-server.conf /etc/nginx/user-public-server.conf
force_link (pwd)/.nginx-autoindex-before.html /usr/share/nginx/html/.nginx-autoindex-before.html
force_link (pwd)/.nginx-autoindex-after.html /usr/share/nginx/html/.nginx-autoindex-after.html
echo 'Don\'t forget to include the nginx files in your config inside their respective blocks!'