Updated Keyboard mappings (markdown)
parent
1a9e4c95f2
commit
a8928af407
|
@ -24,7 +24,6 @@
|
|||
* [Mac OS](#mac-os-6)
|
||||
* [Belgian](#belgian)
|
||||
* [Mac OS](#mac-os-7)
|
||||
* [Tmux workaround](#tmux-workaround)
|
||||
|
||||
## Syntax documentation
|
||||
|
||||
|
@ -273,34 +272,4 @@ For those, coming from iTerm, here's `Command + Enter` to ToggleFullscreen
|
|||
- { key: RBracket, mods: Alt|Shift, chars: "]" }
|
||||
- { key: 37, mods: Alt|Shift, chars: "|" }
|
||||
- { key: 47, mods: Alt|Shift, chars: "\\" }
|
||||
```
|
||||
|
||||
|
||||
# Tmux workaround
|
||||
|
||||
Launching `tmux` as the default shell in `alacritty` with the `-u` flag might bring back unicode symbols. In `alacritty.yml`:
|
||||
```
|
||||
shell:
|
||||
program: /usr/local/bin/tmux
|
||||
args:
|
||||
- -u # force UTF-8 in tmux
|
||||
```
|
||||
|
||||
|
||||
If you want to achieve `SpawnNewInstance` functionality when using tmux as shell, try adding the following binding to your tmux configuration file (e.g. `~/.tmux.conf`):
|
||||
```
|
||||
bind -n C run-shell -b 'alacritty --working-directory #{pane_current_path} -e tmux'
|
||||
```
|
||||
Test with "C", change with your desired key combinations.
|
||||
|
||||
If that don't work, you can try to add this script at top .zshrc or .bashrc (fish shell not work for this syntax)
|
||||
|
||||
```bash
|
||||
# Link: https://github.com/thuanpham2311/dotfiles/blob/master/zsh/zshrc
|
||||
if command -v tmux &> /dev/null && [ -n "$PS1" ] \
|
||||
&& [[ ! "$TERM" =~ screen ]] \
|
||||
&& [[ ! "$TERM" =~ tmux ]] \
|
||||
&& [ -z "$TMUX" ]; then
|
||||
exec tmux
|
||||
fi
|
||||
```
|
Loading…
Reference in New Issue