Skip to content

Instantly share code, notes, and snippets.

View huyong1979's full-sized avatar

Yong HU huyong1979

  • Brookhaven National Lab
  • Upton, New York, U.S.A
View GitHub Profile
@huyong1979
huyong1979 / .bash_aliases
Created July 17, 2025 18:04 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
#!/bin/bash
# This script takes a remote repository and merges it into
# the current one as a subdirectory
set -e
if [ -z "$1" ]
then
echo "Usage:"