Browse Source

Merge branch 'master' of github.com:10sr/dotfiles

pull/1/head
10sr 12 years ago
parent
commit
7648116ab8
2 changed files with 11 additions and 3 deletions
  1. +10
    -2
      bashrc
  2. +1
    -1
      emacs.el

+ 10
- 2
bashrc View File

@@ -218,7 +218,14 @@ if iscygwin; then
alias ls="ls -CFG $(iswindows || test "$TERM" = dumb || echo --color=auto)" alias ls="ls -CFG $(iswindows || test "$TERM" = dumb || echo --color=auto)"
fi fi


alias g=git
g(){
if test $# -eq 0 && null type git-info
then
git info
else
git "$@"
fi
}
if null type _git if null type _git
then then
# enable programmable completion for g # enable programmable completion for g
@@ -679,7 +686,8 @@ __my_ps1_bttry(){
if test -z "$DISPLAY" && ! iswindows if test -z "$DISPLAY" && ! iswindows
then then
test -f $bst && local bstr="$(cat $bst)" test -f $bst && local bstr="$(cat $bst)"
test -n "$bstr" && echo "[Battery:$bstr]"
test -n "$bstr" && ! echo $bstr | grep 100 >/dev/null 2>&1 && \
echo "[Battery:$bstr]"
__my_battery_status %s >$bst & __my_battery_status %s >$bst &
fi fi
return $last return $last


+ 1
- 1
emacs.el View File

@@ -368,7 +368,7 @@ found, otherwise returns nil."
(:background "color-234")) (:background "color-234"))
(((min-colors 256) (((min-colors 256)
(background light)) (background light))
(:background "gainsboro"))
(:background "color-234"))
(t (t
(:underline "black"))) (:underline "black")))
"*Face used by hl-line.") "*Face used by hl-line.")


Loading…
Cancel
Save