Alacritty tmux bindings, pig and time for zsh prompt

main
Petr Nyc 1 year ago
parent 239e93905a
commit 4670ee5597
  1. 37
      .config/alacritty/alacritty.toml
  2. 4
      .p10k.zsh
  3. 1
      .zshenv

@ -30,6 +30,9 @@ padding.x = 5
padding.y = 3
dimensions.columns = 89
dimensions.lines = 41
# trick for alt not displaying special characters
# https://github.com/alacritty/alacritty/issues/93#issuecomment-1428462339
option_as_alt = "Both"
# decorations = "buttonless"
# decorations = "full"
@ -41,3 +44,37 @@ history = 20000
[selection]
save_to_clipboard = true
# key bidnings
# use xxd to find codes of key presses
[keyboard]
bindings = [
# tmux bindings
# option 1 => ^A 1
{ key = "1" , mods = "Option", chars = "\u0001\u0031" },
{ key = "2" , mods = "Option", chars = "\u0001\u0032" },
{ key = "3" , mods = "Option", chars = "\u0001\u0033" },
{ key = "4" , mods = "Option", chars = "\u0001\u0034" },
{ key = "5" , mods = "Option", chars = "\u0001\u0035" },
{ key = "6" , mods = "Option", chars = "\u0001\u0036" },
{ key = "7" , mods = "Option", chars = "\u0001\u0037" },
{ key = "8" , mods = "Option", chars = "\u0001\u0038" },
{ key = "9" , mods = "Option", chars = "\u0001\u0039" },
{ key = "h" , mods = "Option", chars = "\u0001\u0068" },
{ key = "j" , mods = "Option", chars = "\u0001\u006a" },
{ key = "k" , mods = "Option", chars = "\u0001\u006b" },
{ key = "l" , mods = "Option", chars = "\u0001\u006c" },
{ key = "h" , mods = "Option|command", chars = "\u0001\u0068" },
{ key = "j" , mods = "Option|command", chars = "\u0001\u006a" },
{ key = "k" , mods = "Option|command", chars = "\u0001\u006b" },
{ key = "l" , mods = "Option|command", chars = "\u0001\u006c" },
{ key = "n" , mods = "Alt", chars = "\u0001\u006e" }, # alt+n -> C-a n
{ key = "p" , mods = "Alt", chars = "\u0001\u0070" }, # alt+p -> C-a p
{ key = "ArrowLeft", mods = "Command|Shift", action = "SelectPreviousTab" },
{ key = "ArrowRight", mods = "Command|Shift", action = "SelectNextTab" },
]

@ -539,9 +539,9 @@
###################[ command_execution_time: duration of the last command ]###################
# Show duration of the last command if takes at least this many seconds.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=0.1
# Show this many fractional digits. Zero means round to seconds.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=1
# Execution time color.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=101
# Duration format: 1d 2h 3m 4s.

@ -8,6 +8,7 @@ export PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/u
alias oe='open /Applications/Emacs.app'
alias config='/usr/bin/git --git-dir=$HOME/.cfg/.git/ --work-tree=$HOME'
alias -g N="2>&1 "
alias pig='ping'
# export PATH=$HOME/.rd/bin
#

Loading…
Cancel
Save