shell: nvc is now a script rather than an alias

This commit is contained in:
PowerUser64 2022-07-26 02:24:48 -07:00
parent 514e74698c
commit d192524325
2 changed files with 9 additions and 1 deletions

View file

@ -89,9 +89,11 @@ alias ydotool='(sudo ydotoold &) && sleep 0.05 && sudo ydotool'
# Update zinit and plugins # Update zinit and plugins
alias zup='zinit self-update && zinit update --parallel' 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 # Edit config files
alias \ alias \
nvc='(cd ~/.config/nvim/lua/blake && nvim ../../init.lua)' \
zc='$EDITOR ~/.zshrc' \ zc='$EDITOR ~/.zshrc' \
sc='$EDITOR $SHELL_CONFIG_DIR/shrc' \ sc='$EDITOR $SHELL_CONFIG_DIR/shrc' \
fstab='sudoedit /etc/fstab' \ fstab='sudoedit /etc/fstab' \

6
.config/shell/bin/nvc Executable file
View file

@ -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