This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "$PS1" ]; then | |
if [ "$BASH" ]; then | |
shortname=${HOSTNAME%%.*} | |
shortname=${shortname//[aeiou]/} | |
hostname_crc=$(echo $HOSTNAME | tr 'A-Z' 'a-z' | cksum) | |
hostname_crc=${hostname_crc%% *} | |
hostcolor_a=$(( (0x${hostname_crc} + 1) % 2 )) | |
hostcolor_b=$(( 0x${hostname_crc} % 8 + 30 )) | |
PS1="\[\e[33;1m\]\u@\[\e[${hostcolor_a};${hostcolor_b}m\]${shortname}:\[\e[0m\]\w"'\$ ' | |
PS2='\[\e[31;1m\]>\[\e[0m\]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Simple script to update OSX Chromium to the latest nightly build. | |
# Will not download if you already have the latest (call with --force | |
# to override this check) | |
# | |
# Copyleft 2010 Ian Gallagher <crash@neg9.org> | |
# | |
LATEST=$(curl -s "http://build.chromium.org/f/chromium/snapshots/Mac/LATEST") |
NewerOlder