Skip to content

Commit

Permalink
Use a custom terminfo entry for italics.
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Krueger committed Nov 7, 2018
1 parent f18f575 commit 0838d75
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .alacritty.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
dynamic_title: true
dynamic_title: false
hide_cursor_when_typing: true
cursor_style: Block
unfocused_hollow_cursor: true
live_config_reload: true
render_timer: false
background_opacity: 0.965
background_opacity: 0.9
custom_cursor_colors: false
tabspaces: 8

env:
TERM: xterm-256color
TERM: tmux-256color-italic

window:
dimensions:
columns: 80
lines: 24

padding:
x: 6
x: 9
y: 6

decorations: full
Expand Down Expand Up @@ -91,7 +91,7 @@ mouse:

selection:
semantic_escape_chars: ",│`|:\"' ()[]{}<>"
save_to_clipboard: false
save_to_clipboard: true

key_bindings:
- { key: Space, mods: Control, chars: "\x1b" }
Expand Down
6 changes: 4 additions & 2 deletions .config/fish/functions/fish_prompt.fish
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
function fish_prompt
set prompt (echo $PWD | grep -Eo '([^/]+)?/([^/]+)?$')
set -l prompt (echo $PWD | grep -Eo '([^/]+)?/([^/]+)?$')

which arcus > /dev/null 2>&1
if test "$status" -a -n "$fish_color_cwd_fade_to"
if test $status -a -n "$fish_color_cwd_fade_to"
set_color -i
echo -n $prompt | arcus $fish_color_cwd $fish_color_cwd_fade_to
set_color normal
else
set_color $fish_color_cwd
echo -n $prompt
Expand Down
2 changes: 2 additions & 0 deletions .hovel/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,5 @@ if [ $? -a "$SHELL" != "$newsh" ]; then
echo "Changing shell to '$newsh'"
chsh -s $newsh
fi

tic ~/.hovel/tmux-256color-italic.terminfo
4 changes: 4 additions & 0 deletions .hovel/tmux-256color-italic.terminfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tmux-256color-italic|tmux with 256 color and italic support,
sitm=\E[3m, ritm=\E[23m,
use=xterm-256color,
use=screen-256color,
5 changes: 3 additions & 2 deletions .tmux.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
set -g prefix C-a

# Ensure proper colors and neovim cursor.
set -ga terminal-overrides "xterm-256color:Tc,screen-256color:Tc"
# Enable truecolor and bar cursors
set -g default-terminal "tmux-256color-italic"
set -ga terminal-overrides "tmux-256color-italic:Tc"
set -ga terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'

set -g pane-base-index 1
Expand Down

0 comments on commit 0838d75

Please sign in to comment.