kai desu.

Laravel Homestead alias

2019-05-08
1 min

The following alias will make interacting with Homestead a lot easier.

# Homestead
alias homestead='function __homestead() {
    if [[ $@ == "config" ]]; then
        command open ~/Homestead/Homestead.yaml
    elif [[ $@ == "aliases" ]]; then
        command open ~/Homestead/aliases
    else
        (cd ~/Homestead && vagrant $*);
    fi
}; __homestead'