Installing CLI Tools (fish, php, composer, nvm) with Arch Linux and Docker Image

Start the container

docker run --rm -it --privileged=true archlinux:latest bash

pacman -Syu # Update
pacman -Syu sudo vim # Install vim

# Run the following and uncomment the line "%wheel ALL=(ALL) ALL"
sudo EDITOR=vim visudo

Create your user account

sudo useradd -m digitalblake
sudo passwd digitalblake
usermod -aG wheel digitalblake
su - digitalblake
sudo whoami

# If you need to delete the user:
sudo userdel --remove digitalblake

Installing fish and set it as your default shell:

sudo pacman -Fy # Sync the files database
sudo pacman -Syu fish curl which git
which fish # if this is different from below, use this value
chsh -s /usr/bin/fish

curl -sL | source && fisher install jorgebucaran/fisher

# If you don't want to use tide, don't install it
fisher install ilancosman/[email protected]

Installing nvm and node

sudo pacman -Syu python
fisher install edc/bass

curl -o- | bash
alias nvm "bass source ~/.nvm/ --no-use ';' nvm $argv" -s

vim ~/.config/fish/
# In add the next two lines:
set -x NVM_DIR ~/.nvm
nvm use default --silent

nvm --version
nvm install v12
node -v

npm i gulp -g

Installing php and composer

sudo pacman -Syu php php7 wget

wget -O - -q | php -- --quiet

sudo mv composer.phar /usr/local/bin/composer

Add fish aliases (functions)

alias install 'sudo pacman -Syu' -s
alias update 'sudo pacman -Syu' -s
alias remove 'sudo pacman -Rs' -s
alias search 'pacman -F' -s
alias clean 'sudo pacman -Sc' -s
alias list 'pacman -Qe' -s
alias l 'ls -lagh --group-directories-first' -s
alias composer 'php7 /usr/local/bin/composer' -s

vim ~/.config/fish/functions/
function take -d "Create a directory and set CWD"
    command mkdir $argv
    if test $status = 0
        switch $argv[(count $argv)]
            case '-*'

            case '*'
                cd $argv[(count $argv)]