Browse Source

set TERM=screen-256color in bashrc

pull/1/head
10sr 12 years ago
parent
commit
7be14ddba7
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      bashrc
  2. +1
    -1
      tmux.conf

+ 1
- 0
bashrc View File

@@ -53,6 +53,7 @@ export VISUAL="$EDITOR"
export GIT_PAGER="$PAGER" export GIT_PAGER="$PAGER"
export GIT_EDITOR="$EDITOR" export GIT_EDITOR="$EDITOR"
echo "$TERM" | grep '^screen' >/dev/null 2>&1 || export TERM_ORIG=$TERM echo "$TERM" | grep '^screen' >/dev/null 2>&1 || export TERM_ORIG=$TERM
test "$TERM" = screen && test "$TERM_ORIG" = xterm-256color && TERM=screen-256color


test -z "$TMP" && export TMP=/tmp/${USER}-tmp test -z "$TMP" && export TMP=/tmp/${USER}-tmp
mkdir -p "$TMP" mkdir -p "$TMP"


+ 1
- 1
tmux.conf View File

@@ -7,7 +7,7 @@ bind-key C command-prompt "new-window '%%'"
#setw -g mode-keys vi #setw -g mode-keys vi


set -g default-command /bin/bash set -g default-command /bin/bash
set -g default-terminal screen-256color
#set -g default-terminal screen-256color
#set -g default-terminal screen-16color #set -g default-terminal screen-16color


#set -g status-left "" #set -g status-left ""


Loading…
Cancel
Save