Ashwin Sinha

Augmented Reality / Games / Web

  • Home
  • Things
  • Hacks

Tag: bash

How To Open Another Terminal/Bash Instance In A Running Docker Container

How To Open Another Terminal/Bash Instance In A Running Docker Container Add the following to your bashrc. #Add another docker window function dock() { if [ “$1” == “-h” ] then #display help printf “Attaches this window as a new terminal (bash) instance to a running docker container\n” printf “Usage: ‘dock’ or ‘dock 6548as846’\n” printf […]

  • August 30, 2016November 18, 2016
  • PERMALINK
  • Hacks

Version control your `.bashrc` file (or any other file) with Github Gist

Version control your .bashrc file with Github Gist Install Gist on your machine If you have ruby installed (how to install ruby): sudo gem install gist ‌If you’re using Bundler: source :rubygems gem ‘gist’ ‌For OS X, gist lives in Homebrew brew install gist Log into Gist with your Github account If you want to […]

  • July 12, 2016November 18, 2016
  • PERMALINK
  • Hacks

Add Bash on Ubuntu on Windows to context menu

Add Bash on Ubuntu on Windows to context menu Bash on Ubuntu on Windows (installation instructions) is a Linux Subsystem for Windows. To add it to the Windows right click context menu, perform the following steps: Open regedit from the run menu Win + R. Under HKEY_CLASSES_ROOT\Directory\Background\shell create a key called Bash on Ubuntu on […]

  • June 27, 2016November 18, 2016
  • PERMALINK
  • Hacks

Powered by WordPress.