Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

fish function to change php version devilbox

# switch_php.fish
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 :: docker and kubernetes chear sheet 
Shell :: exit code: 127 
Shell :: bash enum 
Shell :: linux bash shell join path 
Shell :: what is /bin/ash 
Shell :: rust cargo build on change 
Shell :: case in fish 
Shell :: Provide file / folder access to a user in Linux 
Shell :: github settings loin 
Shell :: vscode unable to resolve your shell environment 
Shell :: killall kdevtmpfsi && killall kinsing 
Shell :: how to check if tab was pressed in bash 
Shell :: git merge anotehr 
Shell :: Installing craftable 
Shell :: commit to wrong branch git solution 
Shell :: linux stderr in strout umleiten 
Shell :: ansible zypper add repository 
Shell :: install bjsmasth 
Shell :: can you speak in linux commands 
Shell :: install jupyter notebook pypi 
Shell :: vite 
Shell :: how quit in after git show command 
Shell :: adding file system to a volume 
Shell :: how to turn function lock of calibur v2 
Shell :: How to fix committing to the wrong Git branch? 
Shell :: exclude host in ansible adhoc command 
Shell :: how to install deface makers for ubuntu 
Shell :: install scratchpad jupyter notebook 
Shell :: extract text awk 
Shell :: goodix debug linux 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =