Skip to content

Instantly share code, notes, and snippets.

Joseph Lee cgjosephlee

Block or report user

Report or block cgjosephlee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cgjosephlee / median.theme.bash
Last active Dec 19, 2018
A simple bash theme
View median.theme.bash
#!/usr/bin/env bash
SCM_THEME_PROMPT_PREFIX="${bold_cyan} (${bold_green}"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}"
__last_cmd_return() {
if [ $code = 0 ]; then
from __future__ import print_function
import os
N = 255
for f in os.walk(os.path.expanduser('~/Music/iTunes/iTunes Media')):
if len(f[2]) > N:
print('{}\t{}'.format(len(f[2]), f[0]))
You can’t perform that action at this time.