Permalink
Browse files

add .bashrc

  • Loading branch information...
1 parent f67ecd9 commit d755ae9b9dbbf3645c51ccf421ec7e7c36deda0a Amir Malik committed Dec 8, 2010
Showing with 20 additions and 1 deletion.
  1. +1 −1 .bash_aliases
  2. +19 −0 .bashrc
View
@@ -41,7 +41,7 @@ makeprompt() {
local cyan=$(tput setaf 6)
local white=$(tput setaf 7)
local reset=$(tput sgr0)
- PS1="\[$bold\]\[$green\]\u\[$reset\]@\[$bold\]\[$cyan\]\h\[$reset\]:\[$bold\]\[$blue\]\w\[$reset\]\$ "
+ PS1="\[$bold\]\[$green\]\u\[$reset\]@\[$bold\]\[$cyan\]\h\[$reset\]:\[$bold\]\[$blue\]\W\[$reset\]\$ "
}
makeprompt
View
@@ -0,0 +1,19 @@
+# If running interactively, then:
+if [ "$PS1" ]; then
+ # set a fancy prompt
+ # PS1='\u@\h:\w\$ '
+ PS1='\[\e[1;10m\]\u\[\e[1;36m\]@\[\e[1;32m\]\h\[\e[1;30m\]:\[\e[0;37m\]\w\[\e[0;37m\]$ '
+
+ # If this is an xterm set the title to user@host:dir
+ case $TERM in
+ xterm*)
+ PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
+ ;;
+ *)
+ ;;
+ esac
+
+
+fi
+
+source ~/.bash_aliases

0 comments on commit d755ae9

Please sign in to comment.