Skip to content

Instantly share code, notes, and snippets.

View apavamontri's full-sized avatar

Anusidh Pavamontri apavamontri

View GitHub Profile
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
@apavamontri
apavamontri / app.py
Last active December 12, 2015 08:59 — forked from mattupstate/app.py
os
from flask_extended import Flask
app = Flask(__name__)
app.config.from_yaml(os.join(app.root_path, 'config.yml'))
@apavamontri
apavamontri / bash_prompt.sh
Last active December 11, 2015 06:58 — forked from insin/bash_prompt.sh
Add the current time at the beginning in purple color.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.