web development functions I use in my linux bashrc file

You are here

My ./bashrc shorthand vagrant function call for the Linux terminal. So I can speed up access to my development machines

alias www='cd /home/www/Html/'

function vup() {
    www && cd $1 && vagrant up
}

function vhalt() {
    www && cd $1 && vagrant halt
}

function vdir() {
    www && cd $1
}

function vdirw() {
    www && cd $1 && cd docroot
}

function vssh() {
    www && cd $1 && vagrant up && vagrant ssh
}

Auto generated passwords

function pwdg(){
   openssl rand -base64 16 | colrm $1
}