refactor(zsh): improve img
alias
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 52s
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 52s
This commit is contained in:
parent
d6f81869d3
commit
bc4df04626
@ -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-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-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 })
|
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
|
||||||
|
@ -88,7 +88,7 @@
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
### Wezterm ###
|
### 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 img="wezterm imgcat"
|
||||||
alias ssh="TERM=xterm-256color ssh"
|
alias ssh="TERM=xterm-256color ssh"
|
||||||
fi
|
fi
|
||||||
@ -102,4 +102,9 @@
|
|||||||
if command -v arecord >/dev/null 2>&1; then
|
if command -v arecord >/dev/null 2>&1; then
|
||||||
alias audio-record="arecord -f dat -r 41000 -d 5 $(date_iso_8601).wav"
|
alias audio-record="arecord -f dat -r 41000 -d 5 $(date_iso_8601).wav"
|
||||||
fi
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user