From d1925243250ca757e7806cadd774090c6100f0d4 Mon Sep 17 00:00:00 2001
From: PowerUser64 <blakelysnorth@gmail.com>
Date: Tue, 26 Jul 2022 02:24:48 -0700
Subject: [PATCH] shell: nvc is now a script rather than an alias

---
 .config/shell/aliases | 4 +++-
 .config/shell/bin/nvc | 6 ++++++
 2 files changed, 9 insertions(+), 1 deletion(-)
 create mode 100755 .config/shell/bin/nvc

diff --git a/.config/shell/aliases b/.config/shell/aliases
index 287322e..53050fd 100644
--- a/.config/shell/aliases
+++ b/.config/shell/aliases
@@ -89,9 +89,11 @@ alias ydotool='(sudo ydotoold &) && sleep 0.05 && sudo ydotool'
 # Update zinit and plugins
 alias zup='zinit self-update && zinit update --parallel'
 
+# Run PackerSync in neovim with PS
+alias PS='nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerSync"'
+
 # Edit config files
 alias                                                         \
-   nvc='(cd ~/.config/nvim/lua/blake && nvim ../../init.lua)' \
    zc='$EDITOR ~/.zshrc'                                      \
    sc='$EDITOR $SHELL_CONFIG_DIR/shrc'                        \
    fstab='sudoedit /etc/fstab'                                \
diff --git a/.config/shell/bin/nvc b/.config/shell/bin/nvc
new file mode 100755
index 0000000..d6869fb
--- /dev/null
+++ b/.config/shell/bin/nvc
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Purpose: edit nvim configuration while being cd'd into the directory that
+# most of the files live so they can easily be :e'd
+# Usage: nvc
+cd ~/.config/nvim/lua/blake \
+   && nvim ../../init.lua