dotfiles/fish/.config/fish/functions/cp_tilde_index.fish

9 lines
345 B
Fish
Raw Normal View History

2018-07-22 19:39:58 +00:00
# Defined in /tmp/fish.hXQA9y/cp_tilde_index.fish @ line 1
function cp_tilde_index
2018-08-11 05:38:12 +00:00
sudo cp /etc/skel/public_html/index.php /home/$argv[1]/public_html/.
sudo chown $argv[1]:$argv[1] /home/$argv[1]/public_html/index.php
if test -e /home/$argv[1]/public_html/index.html
sudo rm /home/$argv[1]/public_html/index.html
end
2018-07-22 19:39:58 +00:00
end