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