summaryrefslogtreecommitdiff
path: root/mut
diff options
context:
space:
mode:
Diffstat (limited to 'mut')
-rwxr-xr-xmut/bin/zshcmd10
-rw-r--r--mut/neovim/fnl/conf/init.fnl2
2 files changed, 11 insertions, 1 deletions
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})