shell: nvc is now a script rather than an alias
This commit is contained in:
parent
514e74698c
commit
d192524325
2 changed files with 9 additions and 1 deletions
|
@ -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' \
|
||||
|
|
6
.config/shell/bin/nvc
Executable file
6
.config/shell/bin/nvc
Executable 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
|
Loading…
Add table
Reference in a new issue