mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-12-23 07:39:36 +01:00
Fix an issue about term colors
This commit is contained in:
parent
7cd2b2dc5e
commit
4c9b06585a
@ -62,6 +62,8 @@ bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
|
|||||||
bind-key -n C-S-Right swap-window -t +1\; select-window -t +1
|
bind-key -n C-S-Right swap-window -t +1\; select-window -t +1
|
||||||
|
|
||||||
set -g default-terminal "screen-256color"
|
set -g default-terminal "screen-256color"
|
||||||
|
# tell Tmux that outside terminal supports true color
|
||||||
|
set -ga terminal-overrides ",xterm-256color*:Tc"
|
||||||
|
|
||||||
# start session number from 1 rather than 0
|
# start session number from 1 rather than 0
|
||||||
# set -g base-index 1
|
# set -g base-index 1
|
||||||
|
2
.zshrc
2
.zshrc
@ -3,7 +3,7 @@ if type tmux &> /dev/null; then
|
|||||||
session_name=${TERMINAL_NAME:-Terminal}
|
session_name=${TERMINAL_NAME:-Terminal}
|
||||||
#if not inside a tmux session, start a new session
|
#if not inside a tmux session, start a new session
|
||||||
if [[ $HOST == "ubuntu" && -z "$TMUX" ]]; then
|
if [[ $HOST == "ubuntu" && -z "$TMUX" ]]; then
|
||||||
(tmux -2 new-session -A -s $session_name || false)
|
( TERM=xterm-256color tmux -2 new-session -A -s $session_name || false)
|
||||||
# || false makes Konsole happy while quitting. It doesn't ask for
|
# || false makes Konsole happy while quitting. It doesn't ask for
|
||||||
# confirmation. Since we are in tmux, it doesn't matter if we really
|
# confirmation. Since we are in tmux, it doesn't matter if we really
|
||||||
# wanted to quit or not
|
# wanted to quit or not
|
||||||
|
Loading…
Reference in New Issue
Block a user