Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #fortune | cowsay -f tux
- #source /etc/profile
- #fortune | cowsay -f tux
- echo -e "\e[00;36m###########################################################\e[00m"
- echo -e "\e[00;36m# __ #\e[00m"
- echo -e "\e[00;36m# _ _ _ _ _____ | | #\e[00m"
- echo -e "\e[00;36m# | | | |___| |___ ___ _____ ___ | _ |___ ___ ___| | #\e[00m"
- echo -e "\e[00;36m# | | | | -_| | _| . | | -_| | __| -_| . | . |__| #\e[00m"
- echo -e "\e[00;36m# |_____|___|_|___|___|_|_|_|___| |__| |___| _|___|__| #\e[00m"
- echo -e "\e[00;36m# |_| #\e[00m"
- echo -e "\e[00;36m# 84 101 97 109 111 65 122 117 99 101 110 97 33 #\e[00m"
- echo -e "\e[00;36m###########################################################\e[00m"
- echo -e "\n"
- #THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!!
- #[[ -s "/home/ai2-27/.gvm/bin/gvm-init.sh" && -z $(which gvm-init.sh | grep '/gvm-init.sh') ]] && source "/home/ai2-27/.gvm/bin/gvm-init.sh"]]
- #source /home/ai2-27/.gvm/bin/gvm-init.sh
- export TERM=xterm-256color
- D=$'\e[00;37m'
- RED=$'\e[00;31m'
- GREEN=$'\e[00;32m'
- ORANGE=$'\e[00;33m'
- fortune -a
- function parse_git_dirty {
- [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
- }
- function number_of_commits(){
- # NUMOFLINES="$( git log --oneline 2> /dev/null | wc -l )"
- NUMOFLINES="$( git rev-list HEAD --count 2> /dev/null )"
- echo $NUMOFLINES
- }
- function parse_git_branch {
- git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[Branch : \1$(parse_git_dirty), # of commits : $(number_of_commits)]/"
- }
- function hg_ps1() {
- hg prompt "{${D} on ${RED}{branch}}{${D} at ${ORANGE}{bookmark}}{${GREEN}{status}}" 2> /dev/null
- }
- #echo $(number_of_commits);
- #/home/ai2-27/Dropbox/Untitled/ESCOM/Analisis de Algoritmos/finalProject/2013b
- export PS1='\n${RED}\u ${D}at ${ORANGE}\h ${D}in ${GREEN}\w${D} $(parse_git_branch)\n$ '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement