home: fix Neovim autosave

inky
Elnu 2 years ago
parent 6396ce2c39
commit 3e1f713bc3

@ -96,7 +96,6 @@ in
gC = "g clone"; gC = "g clone";
goops = "g reset --soft HEAD^"; goops = "g reset --soft HEAD^";
v = "nvim";
r = "ranger"; r = "ranger";
rm = "trash-put"; rm = "trash-put";
emacs = "emacsclient -nw"; emacs = "emacsclient -nw";
@ -105,6 +104,14 @@ in
clear = "printf '\\E[H\\E[3J'"; clear = "printf '\\E[H\\E[3J'";
}; };
bashrcExtra = '' bashrcExtra = ''
function v {
if [[ $# -eq 0 ]]; then
nvim ~/UNTITLED.md
else
nvim $1
fi
}
# Modify killall for wrapped applications, e.g. firefox # Modify killall for wrapped applications, e.g. firefox
# killall firefox -> killall firefox || killall .firefox-wrapped # killall firefox -> killall firefox || killall .firefox-wrapped
function killall { function killall {

Loading…
Cancel
Save