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