git show <hash>:<file>
git log -p <filename>
#### | |
#### pyenv-virtualenv bash prompt customization | |
#### | |
# pyenv | |
eval "$(pyenv init -)" | |
# pyenv-virtualenv: |
if(!require("ggseas")) install.packages("ggseas") | |
if(!require("forecast")) install.packages("forecast") | |
if(!require("data.table")) install.packages("data.table") | |
if(!require("knitr")) install.packages("knitr") | |
library(ggseas) | |
library(forecast) | |
library(data.table) | |
# Get data |
Here's the canonical TOML example from the TOML README, and a YAML version of the same. Which looks nicer?
|
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import re | |
import sys | |
def c(i): | |
""" |
This is a considerably faster, but much more basic alternative to bash-git-prompt.
When adding this script to your .bash_profile
or .bashrc
, it'll display the selected branch of the current folder (if it's a git repo), and whether it's modified (yellow) or contains staged files (cyan).
The script makes the assumption, that a .git
folder only exists when the directory is a git repo. Also, it checks for the english version of the git status
command, so if you're using git in a different locale, make sure to adjust this.