Browse Source

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

pull/1/head
10sr 11 years ago
parent
commit
53a91b16c0
2 changed files with 10 additions and 3 deletions
  1. +6
    -3
      bashrc
  2. +4
    -0
      tmux.conf

+ 6
- 3
bashrc View File

@@ -53,8 +53,11 @@ export LC_MESSAGES=C
export VISUAL="$EDITOR"
export GIT_PAGER="less -F"
export GIT_EDITOR="$EDITOR"
echo "$TERM" | grep '^screen' >/dev/null 2>&1 || export TERM_ORIG=$TERM
test "$TERM" = screen && test "$TERM_ORIG" = xterm-256color && TERM=screen-256color
if test -n "$TMUX" && \
test -n "tmux display -p '#{client_termname}' | grep -o 256color"
then
TERM=screen-256color
fi

test -z "$TMP" && export TMP=/tmp/${USER}-tmp
mkdir -p "$TMP"
@@ -100,7 +103,7 @@ _timeformat_rfc2822="%a, %d %b %Y %T %z"

alias ls="ls -hCF${_coloroption}${_timeoption}"
# export GREP_OPTIONS=""
alias gr="grep -n${_coloroption}"
alias gr="grep -n --color=always"
iswindows && alias grep="grep -n"
# alias ll="ls -l"
# alias la="ls -A"


+ 4
- 0
tmux.conf View File

@@ -38,3 +38,7 @@ setw -g window-status-current-attr bold

set -g mode-bg white
set -g mode-fg black

# this does not work because it runs asyncly
# if "test -n \"tmux display -p '#{client_termname}' | grep -o 256color\"" \
# "set -g default-terminal screen-256color" "set -g default-terminal screen"

Loading…
Cancel
Save