From 4a4392a3d20f9d7d750133dcac11ab48efe927de Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 25 May 2022 13:14:36 -0500 Subject: [PATCH] Stuff --- common/neovim/colors/base16-donokai.vim | 2 +- .../nginx-user-public/dotfiles-setup.d.fish | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/common/neovim/colors/base16-donokai.vim b/common/neovim/colors/base16-donokai.vim index 676c00e..3af3c64 120000 --- a/common/neovim/colors/base16-donokai.vim +++ b/common/neovim/colors/base16-donokai.vim @@ -1 +1 @@ -/Users/danielflanagan/.config/lytedev-dotfiles/common/colors/vim \ No newline at end of file +/home/daniel/.home/.config/lytedev-dotfiles/common/colors/vim \ No newline at end of file diff --git a/host/layer/nginx-user-public/dotfiles-setup.d.fish b/host/layer/nginx-user-public/dotfiles-setup.d.fish index 15ea258..437e87a 100644 --- a/host/layer/nginx-user-public/dotfiles-setup.d.fish +++ b/host/layer/nginx-user-public/dotfiles-setup.d.fish @@ -5,7 +5,15 @@ set h $argv[2] set c $argv[3] pushd (dirname $me) -sudo ln -s (pwd)/user-public-http.conf /etc/nginx/user-public-http.conf -sudo ln -s (pwd)/user-public-server.conf /etc/nginx/user-public-server.conf -sudo ln -s (pwd)/.nginx-autoindex-before.html /usr/share/nginx/html/.nginx-autoindex-before.html -sudo ln -s (pwd)/.nginx-autoindex-after.html /usr/share/nginx/html/.nginx-autoindex-after.html +function force_link + sudo rm -f "$argv[2]" + echo "Linking $argv[1] to $argv[2]" + 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!'