bash & tmux: set TERM to screen-256color inside tmux
This commit is contained in:
parent
66c3eb9909
commit
4c92b35b8d
|
@ -12,3 +12,7 @@ PS1='[\u@\h \W]\$ '
|
|||
if [ "$TERM" == "alacritty" ]; then
|
||||
exec tmux
|
||||
fi
|
||||
|
||||
# Set TERM to screen-256color inside tmux
|
||||
# (Needs tmux.conf changes)
|
||||
[[ $TMUX != "" ]] && export TERM="screen-256color"
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
# Pretend to be screen-256color
|
||||
set-option -g default-terminal "screen-256color"
|
||||
|
||||
# Allow mouse input (to switch window / panes)
|
||||
set -g mouse on
|
||||
|
||||
# Set new panes to open in current directory
|
||||
bind c new-window -c "#{pane_current_path}"
|
||||
bind '"' split-window -c "#{pane_current_path}"
|
||||
bind % split-window -h -c "#{pane_current_path}"
|
||||
|
||||
# Tmux Plugin Manager
|
||||
# Note: Clone https://github.com/tmux-plugins/tpm to ~/.tmux/plugins/tpm first
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
|
|
Loading…
Reference in New Issue