Skip to content

Instantly share code, notes, and snippets.

@marr
marr / docker-prompt.md
Created August 23, 2017 19:16 — forked from scmx/docker-prompt.md
How to get a fancier bash prompt PS1 inside a docker container #docker #ps1 #emoji

How to get a fancier bash prompt PS1 inside a docker container

Today I wanted to make a recording of me running some commands inside a docker-container.

❯ docker-compose run app bash
root@e9bb2af4dc11:/usr/local/go/src/example.com/dev/project#

Needless to say it looked a bit bland with no colors and a long prompt that prevents me from recording a small terminal and show the full commands I'm

@marr
marr / app.js
Created March 1, 2014 10:53 — forked from Siedrix/app.js
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.send('Express.js Hello world');
});
app.listen(8000);
# two options:
# 1) put it into Ubic::Service::Starman::WithFileChangeDetection, and reuse it in multiple ubicservice configs;
# in this case, you'll have to add [package ...] line here
# 2) put it directly into service config; in this case, you don't need package line
use strict;
use warnings;
use parent qw(Ubic::Service::Starman); # or whatever you use
use Ubic::Result qw(result);