Note
Shows all installed Service Workers : chrome://serviceworker-internals/
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://MediaDoneRight.com | |
# SETUP CONSTANTS | |
# Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
# I don't remember where I found this. o_O | |
# Reset | |
Color_Off="\[\033[0m\]" # Text Reset |
function printLogo() { | |
const logo = ` | |
@@@@@@@@@ | |
@@%=.--.-*@@@@ | |
@@@-. #@@* .-*@@@@ | |
@@*. +@@: . ..=@@@ | |
@@=.. .%@ | |
@@=. . . . .%@ | |
@@= . .#@@ | |
@@+ .*+. .*@@@ |
<nav class="navbar navbar-expand-lg navbar-dark bg-primary"> | |
<a class="navbar-brand navbar-logo" href="#">Navbar</a> | |
<button class="navbar-toggler" type="button" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | |
<i class="fas fa-bars text-white"></i> | |
</button> | |
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | |
<ul class="navbar-nav ms-auto"> | |
<div class="hori-selector"> | |
<div class="left"></div> | |
<div class="right"></div> |
This script uses the if statement to check if the file .env exists (with [ ! -f ".env" ]). If the file doesn't exist, the script uses the cp command to copy .env.example to .env. If the file exists, a message is displayed indicating that the file already exists.
#!/bin/bash
if [ ! -f ".env" ]; then
cp .env.example .env
echo "Copied .env.example to .env"