Snippets

Duane Blake Bash Script

Created by Duane Blake

File bashrc Added

  • Ignore whitespace
  • Hide word diff
+#Creates folder and change to that folder
+function mkcd() {
+    mkdir "$1" && cd "$1"
+}
+
+#Create a Virtual Host domain
+function mkvh(){
+    sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/"$1".conf && sudo vim /etc/apache2/sites-available/"$1".conf
+}
+
+vim ~/.bashrc
+source ~/.bashrc
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.