Added fix for terminal colors in nested tmux and nvim

This commit is contained in:
_N0x 2022-06-08 11:22:13 +02:00
parent 9bd48adb13
commit fc87ac1fec
3 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
# This file contains fish universal variable definitions. # This file contains fish universal variable definitions.
# VERSION: 3.0 # VERSION: 3.0
SETUVAR __fish_initialized:3100 SETUVAR --export TERM:xterm\x2d256color
SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:4c566a SETUVAR fish_color_autosuggestion:4c566a
SETUVAR fish_color_cancel:\x2dr SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:green SETUVAR fish_color_command:green

View File

@ -59,7 +59,7 @@ function fish_prompt
__fish_git_prompt " (%s)" __fish_git_prompt " (%s)"
# beginning of new line # beginning of new line
_print_in_color "\r\n┗" blue _print_in_color "\n┗" blue
# time information # time information
_print_in_color " "(date "+%H:%M:%S") green _print_in_color " "(date "+%H:%M:%S") green

View File

@ -1,6 +1,7 @@
# ========================== # ==========================
# === General settings === # === General settings ===
# ========================== # ==========================
set-option -ga terminal-overrides ",*256col*:Tc"
set -g default-terminal "screen-256color" set -g default-terminal "screen-256color"
# Change prefix key to C-a, easier to type, same to "screen" # Change prefix key to C-a, easier to type, same to "screen"