refactor(zsh): improve img alias
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 52s

This commit is contained in:
Price Hiller 2024-03-31 18:51:42 -05:00
parent d6f81869d3
commit bc4df04626
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
2 changed files with 9 additions and 1 deletions

View File

@ -29,3 +29,6 @@ vim.keymap.set({ "n" }, "<C-S-Right>", "<cmd>vertical belowright terminal<CR>",
vim.keymap.set({ "n" }, "<C-S-Left>", "<cmd>vertical aboveleft terminal<CR>", { noremap = true, silent = true })
vim.keymap.set({ "n" }, "<C-S-Up>", "<cmd>horizontal aboveleft terminal<CR>", { noremap = true, silent = true })
vim.keymap.set({ "n" }, "<C-S-Down>", "<cmd>horizontal belowright terminal<CR>", { noremap = true, silent = true })
-- Set Neovide specific vars for use elsewhere (e.g. terminal sessions)
vim.env.NEOVIDE_SESSION = 1

View File

@ -88,7 +88,7 @@
fi
### Wezterm ###
if command -v wezterm >/dev/null 2>&1; then
if [[ -v WEZTERM_CONFIG_DIR ]] && command -v wezterm >/dev/null 2>&1; then
alias img="wezterm imgcat"
alias ssh="TERM=xterm-256color ssh"
fi
@ -102,4 +102,9 @@
if command -v arecord >/dev/null 2>&1; then
alias audio-record="arecord -f dat -r 41000 -d 5 $(date_iso_8601).wav"
fi
# Override the `img` alias if we're in Neovide
if ! alias img >/dev/null 2>&1 && command -v swappy >/dev/null 2>&1; then
alias img="swappy -f -"
fi
}