Browse Source

Remove tty config and more

pull/15/head
10sr 8 years ago
parent
commit
d526f98ae1
3 changed files with 14 additions and 6 deletions
  1. +1
    -1
      Makefile
  2. +2
    -2
      profile
  3. +11
    -3
      shrc

+ 1
- 1
Makefile View File

@@ -468,5 +468,5 @@ sexp_elisp_syntax_check := \


$(test_syntax_els): test-syntax-%: $(dotfiles_dir)/% $(test_syntax_els): test-syntax-%: $(dotfiles_dir)/%
test -n "$(emacs)" && \ test -n "$(emacs)" && \
$(emacs) -t $(shell tty) -Q --debug-init --batch \
$(emacs) -Q --debug-init --batch \
--eval '(let ((file "$<")) $(sexp_elisp_syntax_check))' --kill --eval '(let ((file "$<")) $(sexp_elisp_syntax_check))' --kill

+ 2
- 2
profile View File

@@ -58,7 +58,7 @@ export TERMCAP="${TERMCAP}:vb="
# export ENV=~/.shrc # export ENV=~/.shrc


export PAGER="less" export PAGER="less"
export LESS="-iRMX"
export LESS="-iRM"


# Style for lesspipe is defined in esc.style # Style for lesspipe is defined in esc.style
_src_hilite_lp_path="`command -v src-hilite-lesspipe.sh 2>/dev/null`" _src_hilite_lp_path="`command -v src-hilite-lesspipe.sh 2>/dev/null`"
@@ -87,7 +87,7 @@ then
fi fi


# export CDPATH=".:~" # export CDPATH=".:~"
export GIT_PAGER="less -F"
export GIT_PAGER="less -FX"
export GIT_MERGE_AUTOEDIT=no export GIT_MERGE_AUTOEDIT=no


if test -n "$TMUX" && \ if test -n "$TMUX" && \


+ 11
- 3
shrc View File

@@ -280,7 +280,7 @@ _timeformat_rfc2822="%a, %d %b %Y %T %z"
_timeformat_num="%Y%m%d%H%M%S" _timeformat_num="%Y%m%d%H%M%S"
alias datenum="date +$_timeformat_num" alias datenum="date +$_timeformat_num"


alias less="less -F"
alias less="less -FX"
__safe_alias em="emacs -nw" __safe_alias em="emacs -nw"
test -n "$_VI_ALT" && alias vi=$_VI_ALT test -n "$_VI_ALT" && alias vi=$_VI_ALT
alias pstree="LANG=C pstree" alias pstree="LANG=C pstree"
@@ -469,7 +469,11 @@ g(){
fi fi
} }


$isdarwin && . /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
$isdarwin && $inbash && \
. /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
$isdarwin && $inzsh && \
. /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.zsh

if null type _git && $inbash if null type _git && $inbash
then then
# enable programmable completion for g # enable programmable completion for g
@@ -1036,6 +1040,7 @@ __my_ps1_moc(){
__my_moc_state "[MOC:%s]" __my_moc_state "[MOC:%s]"
} }


echo BBB
for f in /usr/share/git/git-prompt.sh \ for f in /usr/share/git/git-prompt.sh \
/Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh \ /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh \
/usr/local/opt/bash-git-prompt/share/gitprompt.sh \ /usr/local/opt/bash-git-prompt/share/gitprompt.sh \
@@ -1046,7 +1051,10 @@ for f in /usr/share/git/git-prompt.sh \
/opt/local/share/git-core/git-prompt.sh \ /opt/local/share/git-core/git-prompt.sh \
/opt/local/share/doc/git-core/contrib/completion/git-prompt.sh /opt/local/share/doc/git-core/contrib/completion/git-prompt.sh
do do
test -r "$f" && ($inbash || $inzsh) && . "$f" && break
if test -r "$f" && ($inbash || $inzsh)
then
echo Srouce $f
fi
done done
export GIT_PS1_SHOWDIRTYSTATE=t export GIT_PS1_SHOWDIRTYSTATE=t
export GIT_PS1_SHOWUPSTREAM=t export GIT_PS1_SHOWUPSTREAM=t


Loading…
Cancel
Save