-
Notifications
You must be signed in to change notification settings - Fork 5
terminal emulator Notes
When messing around with locale settings make sure,
- Set locale variables automatically
is set, within the Terminal
under the Profiles
tab.
If the above setting isn't set within iTerm2 locale settings have been know to get jacked. ποΈββοΈ
Both iTerm2 and Terminal.app get their locale settings from
AppleLocale
The AppleLocale
setting can be statused with
defaults read -g AppleLocale
- Cursor color tricks, see π
i spent the afternoon brushing up some git skillz, just so i could finally insert an emoji #forfuckssake using alacritty. long story short, somebody had already got the emoji input menu working on macos (god bless your soul & your time).
https://github.com/alacritty/alacritty/pull/3561
that pr was never merged into the upstream master branch of alacritty (WHATTTTEVERRR).
there have been several open issues about getting the emoji/input pickers going with alacritty but none have been implemented upstream. decided to rebase the PR ontop of the current git master so i can insert emojis in alacritty and when i type markdown docs using neovim yay π.
-
https://github.com/alacritty/alacritty/issues/1895 (Can't bring up input menu)
-
https://github.com/alacritty/alacritty/issues/3245 (Missing native menu items on macOS)
Working with different font sizes within Alacritty. The font size within a terminal can be adjusted using meta + or meta -. Keep in mind the actual font size or adjusted font size can not be printed to the terminal or read from the active terminal session. A possible work around is to open another terminal with the below command
alacritty -v
Then adjust the font size similiar to the previous terminal, and look for the font size printed to STDOUT, and then divide that font size by 2.
To update Alacritty on macOS there are two binaries that need to be updated.
- To update Alacritty.app
cd /path/to/alacritty/git/src
git pull upstream master
git push origin master
make app
cp -r target/release/osx/Alacritty.app /Applications
To update /usr/local/bin/alacritty
cargo install --git https://github.com/jwilm/alacritty
To update the completions for fish shell
cd /path/to/alacritty/git/src
cp -r alacritty-completions.fish $__fish_datadir/vendor_completions.d/alacritty.fish
Alacritty does not provide any scrollback support out of the box, a useful work around is to use tmux.
Alacritty does not provide a way to create a new window.
If a connection to a remote server is broken due to network loss, ie. a SSH session is terminated unexpectedly, the hung SSH session can be terminated gracefully with, β + shift + .
However running the above key sequence could render the terminal unusable due to mouse clicks not properly being sent to the terminal emulator, thus try reseting the terminal
reset
To update Alacritty using cargo
cargo install --git https://github.com/jwilm/alacritty
To setup a meta key binding, ie. alt + [ALPHA_KEY], as far as I can tell, any of the alpha keys on the keyboard can be used, i.e A through z. All that is required is to do something like,
alacritty.yml
key_bindings:
- { key: [ALPHA_KEY], mods: Alt, chars: "\x1b[ALPHA_KEY]" }
Substitute
[ALPHA_KEY]
with a key of A through z on the keyboard.
Ex
key_bindings:
- { key: Q, mods: Alt, chars: "\x1bq" }
The example above adds a keybinding for alt + q
If the correct font is not properly set in the alacritty.yml file within the $XDG_CONFIG_HOME Alacritty will fail to launch.
To use a font family with spaces in the name, ie. IBM Plex make sure to quote the name of the font family, ie. "IBM Plex"
To list and search for a particular font on macOS
fc-match -a | grep -i "[mr-fancy-search-string-within-font-family-name]"
The font family name is listed with double quotes when outputted to STDOUT with the above command.
alacritty -v
After alacritty has been launched certain outputs can determine the current window / PTY size of the window on macOS.
- Width & Height
- Cell Size
Divide the width by the first listed Cell Size and that is the ~ PTY dimension of Column
- time permitting do some research on auto resizing termnial windows based on the width of the output
If you find any of this info helpful on your journey π click that π βοΈ star button. It sure makes me feel warm and fuzzy π» on the inside.
-
Linux and macOS Operation Notes
- β macOS Op Notes
- π§ Linux Op Notes
- Vim & Neovim Notes
- git Notes
- π fish shell Notes
- ECMAScript Tooling
- π₯§ Raspberry Pi Notes
- asdf version manager Notes
- Bind9 Notes
- Creating a custom motd on Debian Jessie
- ECMAScript Tooling
- Email client Notes
- Email Server Setup Notes Postfix & Dovecot
- Emoji side quest
- fish shell Notes
- π₯ π€ git it got it good Notes
- git Notes
- Graphics and Image Processing Notes
- GUI text editor Notes
- π»π§ Homebrew and Linuxbrew formula Notes
- Linux and macOS Administration Notes
- Linux and macOS Troubleshooting Notes
- MacBook Pro Late 2013 Notes
- Vim & Neovim Notes
- Video Production Notes
- Python Notes
- radare Notes
- Raspberry Pi Notes
- Terminal Emulators
- Tmux Notes
- Web Browser Notes
- Weechat Notes
- Microsoft Windows Notes