Skip to content

Instantly share code, notes, and snippets.

@mkorostoff
Created May 14, 2012 14:14
Show Gist options
  • Save mkorostoff/2694231 to your computer and use it in GitHub Desktop.
Save mkorostoff/2694231 to your computer and use it in GitHub Desktop.
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along
# with this software.
# If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
# base-files version 4.0-9
# ~/.bash_profile: executed by bash(1) for login shells.
# The latest version as installed by the Cygwin Setup program can
# always be found at /etc/defaults/etc/skel/.bash_profile
# Modifying /etc/skel/.bash_profile directly will prevent
# setup from updating it.
# The copy in your home directory (~/.bash_profile) is yours, please
# feel free to customise it to create a shell
# environment to your liking. If you feel a change
# would be benifitial to all, please feel free to send
# a patch to the cygwin mailing list.
# User dependent .bash_profile file
#pick a random prompt
function RANDOM_PROMPT {
shuf -n 1 ~/random_prompt
}
#Welcome message
echo "
.O.
+.Z..
.8.SS7..
.=..7SS8..
.S..,SSSSS8.
..?+..~ISSSSSSSO..
.8...===SSSSSSSSSSSO?.
..8=. ..=~SSSSSSSSSSSSSSZ8..
..Z? ..~~SSSSSSSSSSSSSSSSSSO...
.O.. ..=~?SSSSSSSSSSSSSSSSSSSSSZ,.
.8.. .~==SSSSSSSSSSSSSSSSSSSSSSSSSO..
8.. .===ZSSSSSSSSSSSSSSSSSSSSSSSSSSSSO.
.8. .===ZSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSO.
.I. :==~SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSO..
.:?.. .~~=~+SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSZZ:.
.S~~~~~~~SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSOOO.
.ZS+~=SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSOOOO.
.8SSSSSSSSSSSSSSSSSSSSSS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OOOO.. ..:ZSSO..
..OOOOOOOOOOOOOOOOOOOOOZZZ8...
....?8OOOOOOOOOOOZS8O....
. ..............
888 888 8888888888 888 .d8888b. .d88888b. 888b d888 8888888888
888 o 888 888 888 d88P Y88b d88P Y88b 8888b d8888 888
888 d8b 888 888 888 888 888 888 888 88888b.d88888 888
888 d888b 888 8888888 888 888 888 888 888Y88888P888 8888888
888d88888b888 888 888 888 888 888 888 Y888P 888 888
88888P Y88888 888 888 888 888 888 888 888 Y8P 888 888
8888P Y8888 888 888 Y88b d88P Y88b. .d88P 888 O 888 888
888P Y888 8888888888 88888888 *Y8888P* *Y88888P* 888 888 8888888888
"
#showing git branches in bash prompt
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
function proml {
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
local YELLOW="\[\033[0;33m\]"
local LIGHT_GREEN="\[\033[1;32m\]"
local WHITE="\[\033[1;37m\]"
local LIGHT_GRAY="\[\033[0;37m\]"
local LIGHT_PURPLE="\[\033[1;34m\]"
local BLACK="\[\033[0;30m\]"
case $TERM in
xterm*)
TITLEBAR='\[\033]0;\u@\h:\w\007\]'
;;
*)
TITLEBAR=""
;;
esac
PS1="${TITLEBAR}\
$YELLOW\w$LIGHT_GREEN \$(parse_git_branch)\
\n$WHITE $(RANDOM_PROMPT): "
PS2='> '
PS4='+ '
}
proml
# Setting up color aliasing
alias ls="ls -a --color"
alias a="cd /cygdrive/c/xampp/htdocs/nbcsports/docroot"
alias b="cd /cygdrive/c/xampp/htdocs/nbcsports/docroot/sites/rsn"
alias c="cd /cygdrive/c/xampp/htdocs/nbcsports/docroot/profiles/nbcsports"
alias pull="git pull origin gh-pages"
alias push="git push origin gh-pages"
alias go:warner="cd /cygdrive/c/wamp/www/Warner-Common-Files/"
# Set user-defined locale
export LANG=$(locale -uU)
# source the users bashrc if it exists
if [ -f "${HOME}/.bashrc" ] ; then
source "${HOME}/.bashrc"
fi
# Set PATH so it includes user's private bin if it exists
# if [ -d "${HOME}/bin" ] ; then
# PATH="${HOME}/bin:${PATH}"
# fi
# Set MANPATH so it includes users' private man if it exists
# if [ -d "${HOME}/man" ]; then
# MANPATH="${HOME}/man:${MANPATH}"
# fi
# Set INFOPATH so it includes users' private info if it exists
# if [ -d "${HOME}/info" ]; then
# INFOPATH="${HOME}/info:${INFOPATH}"
# fi
my wish is your command
eunix
hack gibson? (y/n)
hack CIA db (y/n)
the abyss stares back
ಠ_ಠ I do not approve of your methods
(╯°□°)╯︵ ┻━┻ )
अआइईउऊऋॠऌॡएऐ
I am become death, the destroyer of worlds
Enter Tweet, 80 characters or less
and as heralds, they perish
Здравствуйте
git some
View the source luke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment