Permalink
Browse files

Added bashrc.locla file and some small changes in vimrc.after file

  • Loading branch information...
Artur Małecki
Artur Małecki committed Feb 6, 2012
1 parent 9ac270c commit 2d42992e47b8381a053e8c992b07726560da15f1
Showing with 38 additions and 4 deletions.
  1. +32 −0 bashrc.local
  2. +6 −4 vimrc.after
View
@@ -0,0 +1,32 @@
+NM="\[\033[0;38m\]"
+HI="\[\033[1;32m\]"
+HII="\[\033[0;31m\]"
+SI="\[\033[0;33m\]"
+IN="\[\033[0m\]"
+export PS1="$NM[$HI\u$NM@$HII\h$NM:$SI\w$NM]$ $IN"
+
+shopt -s checkwinsize # After each command, checks the windows size and changes lines and columns
+bind "set bell-style none" # No bell, because it's damn annoying
+
+
+COLOR_YELLOW="\[\033[33m\]"
+COLOR_RED="\[\033[31m\]"
+COLOR_GREEN="\[\033[32m\]"
+COLOR_BLUE="\[\033[34m\]"
+COLOR_NONE="\[\033[0m\]"
+COLOR_NONEP="\[\033[38m\]"
+
+git_dirty_flag() {
+ git status 2> /dev/null | grep -c : | awk '{if ($1 > 0) print "⚡"}'
+}
+
+parse_git_branch() {
+ git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/'
+}
+
+prompt_func() {
+ previous_return_value=$?;
+ prompt="${COLOR_GREEN}\u@${COLOR_RED}\h ${COLOR_BLUE}\w${COLOR_GREEN}$(parse_git_branch)${COLOR_YELLOW}$(git_dirty_flag)${COLOR_NONEP} "
+ PS1="${prompt}${COLOR_NONEP}➔ ${COLOR_NONE}"
+}
+PROMPT_COMMAND=prompt_func
View
@@ -19,8 +19,10 @@ map tt :tabedit<Space>
map tn :tabnext<Space>
set statusline=%F%m%r%h%w(%Y)\ %{fugitive#statusline()}%=[%04v,%l\/%L]\ %p%%
+set wrap
+
+"let w:m1=matchadd('Search', '\%<121v.\%>116v', -1)
+"let w:m2=matchadd('ErrorMsg', '\%>120v.\+', -1)
+"au BufWinEnter * let w:m1=matchadd('Search', '\%<121v.\%>116v', -1)
+"au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>120v.\+', -1)
-let w:m1=matchadd('Search', '\%<121v.\%>116v', -1)
-let w:m2=matchadd('ErrorMsg', '\%>120v.\+', -1)
-au BufWinEnter * let w:m1=matchadd('Search', '\%<121v.\%>116v', -1)
-au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>120v.\+', -1)

0 comments on commit 2d42992

Please sign in to comment.