From 3af5fc5f86848924d49d30ecb8f5c2b960c9b1af Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Sat, 25 May 2024 18:11:52 +0200 Subject: zshcmd and opaque Zathura --- mut/bin/zshcmd | 10 ++++++++++ mut/neovim/fnl/conf/init.fnl | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 mut/bin/zshcmd (limited to 'mut') diff --git a/mut/bin/zshcmd b/mut/bin/zshcmd new file mode 100755 index 0000000..1a2fc88 --- /dev/null +++ b/mut/bin/zshcmd @@ -0,0 +1,10 @@ +#!/usr/bin/env zsh +if [ -f ~/.zshrc ]; then + source ~/.zshrc &>/dev/null +fi + +# Enable alias expansion +setopt aliases + +# Run your commands that use aliases +eval ${@} diff --git a/mut/neovim/fnl/conf/init.fnl b/mut/neovim/fnl/conf/init.fnl index d2d4929..0e65c84 100644 --- a/mut/neovim/fnl/conf/init.fnl +++ b/mut/neovim/fnl/conf/init.fnl @@ -198,7 +198,7 @@ (vim.api.nvim_create_user_command :Sh (fn [cmd] - (local thunk #(qfjob [:sh :-c cmd.args] nil)) + (local thunk #(qfjob [:zshcmd cmd.args] nil)) (set last_job_thunk thunk) (thunk)) {:nargs :* :bang true :complete :shellcmd}) -- cgit v1.2.3