Skip to content
Browse files

added some ubuntu stuff

  • Loading branch information...
1 parent 4ce4af5 commit d13c9dca723a6777de6505aea18947b5fb25bad6 vagrant committed Apr 5, 2012
Showing with 12 additions and 9 deletions.
  1. +5 −7 .bashrc
  2. +7 −2 .gitignore
View
12 .bashrc
@@ -8,7 +8,7 @@ export PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sb
unset LC_ALL
unset LANGUAGE
unset LC_CTYPE
-export LANG=en_US
+export LANG=en_US.utf8
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
@@ -51,7 +51,10 @@ if [ "$TERM" != "dumb" ]; then
export GIT_PS1_SHOWSTASHSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
unset GIT_PS1_SHOWDIRTYSTATE
- PROMPT_COMMAND='if [ $? -ne 0 ]; then ERROR_FLAG=1; else ERROR_FLAG=; fi'
+ PROMPT_COMMAND='if [ $? -ne 0 ]; then ERROR_FLAG=1; else ERROR_FLAG=""; fi'
+ PROMPT_COMMAND="$PROMPT_COMMAND;history -a"
+#the below will make all commands visible in all shells
+#PROMPT_COMMAND="$PROMPT_COMMAND ; history -a ; history -c; history -r"
if [ "$USER" == "root" ];then
PS1='\[$(tput setaf 5)\]\h\[$(tput setaf 3)\]($(mygitdir):$(__git_ps1 "%s"))\[$(tput setaf 2)\]${ERROR_FLAG:+\[$(tput setaf 1)\]}#\[$(tput sgr0)\] '
@@ -82,11 +85,6 @@ export HISTFILESIZE=$HISTSIZE
# agglomerate history from multiple shells
export HISTCONTROL="ignoredups"
shopt -s histappend
-PROMPT_COMMAND="$PROMPT_COMMAND;history -a"
-
-#the below will make all commands visible in all shells
-
-#PROMPT_COMMAND="$PROMPT_COMMAND ; history -a ; history -c; history -r"
# multi-line commands
shopt -s cmdhist
View
9 .gitignore
@@ -3,10 +3,15 @@
/.gnupg/
# droppings
-.bash_history
-.lesshst
*~
+/.Xauthority
+/.aptitude/
+/.bash_history
+/.cache/
+/.emacs.d/
+/.lesshst
/.ssh/
+/.sudo_as_admin_successful
# erlang droppings
erl_crash.dump

0 comments on commit d13c9dc

Please sign in to comment.
Something went wrong with that request. Please try again.