Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

change php version devilbox

function switch_php
    set input_file ~/devilbox/.env
    if grep 'PHP_SERVER='$argv $input_file
        sed -i 's/^PHP_SERVER/#PHP_SERVER/' $input_file
        sed -i 's/^#PHP_SERVER='$argv'/PHP_SERVER='$argv'/' $input_file
        grep '^PHP_SERVER*' $input_file
    else
        echo "There is no container for PHP " $argv
    end
end
Comment

PREVIOUS NEXT
Code Example
Shell :: go get all required packages 
Shell :: unmount linux 
Shell :: nativescript create angular project 
Shell :: clone private repo github ssh 
Shell :: powershell add line to text file 
Shell :: create windows network share from command line 
Shell :: shell add thousands separator in a number 
Shell :: convert to png images liunx 
Shell :: vim sudo trick 
Shell :: revert to commit git 
Shell :: Error: serverless-domain-manager: Plugin configuration is missing. 
Shell :: powershell get disk space remote computer 
Shell :: undo commit after push 
Shell :: Start Apache service FreeBSD 
Shell :: bash regex match space 
Shell :: Date time in linux prompt 
Shell :: aws secrets manager get password 
Shell :: gcloud add role to service account 
Shell :: aws cli cloudformation list stacks 
Shell :: run appimage apps on arch linux 
Shell :: how to install helm 
Shell :: dig check dmarc record 
Shell :: add ssh key to github 
Shell :: how can I check ram usage in mb in linux? 
Shell :: gitkraken stuck on opening repo 
Shell :: logitech g hub not installing windows 10 
Shell :: save command output 
Shell :: create json from terminal 
Shell :: git flow 
Shell :: git rebase a local branch into my branch 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =